1
0
Fork 0

Fix possible crash

This commit is contained in:
teknomunk 2024-06-15 07:08:45 -05:00
parent 31f3a5558c
commit 53edf3393d
1 changed files with 4 additions and 2 deletions

View File

@ -54,9 +54,11 @@ local function get_input_rules_hash(mesecons, input_rules)
-- Build the rules
local input_rules_hash = {}
redstone.input_rules_hash = input_rules_hash
if input_rules then
for i=1,#input_rules do
input_rules_hash[hash_from_direction(input_rules[i])] = true
end
end
return input_rules_hash
end