mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-08 08:09:32 +01:00
Fix possible crash
This commit is contained in:
parent
31f3a5558c
commit
53edf3393d
1 changed files with 4 additions and 2 deletions
|
@ -54,8 +54,10 @@ local function get_input_rules_hash(mesecons, input_rules)
|
||||||
-- Build the rules
|
-- Build the rules
|
||||||
local input_rules_hash = {}
|
local input_rules_hash = {}
|
||||||
redstone.input_rules_hash = input_rules_hash
|
redstone.input_rules_hash = input_rules_hash
|
||||||
for i=1,#input_rules do
|
if input_rules then
|
||||||
input_rules_hash[hash_from_direction(input_rules[i])] = true
|
for i=1,#input_rules do
|
||||||
|
input_rules_hash[hash_from_direction(input_rules[i])] = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return input_rules_hash
|
return input_rules_hash
|
||||||
|
|
Loading…
Reference in a new issue