mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
Resolve undeclared globals in calls to flip_gate.
Fixes minetest-mods/homedecor_modpack #324
This commit is contained in:
parent
547654dcaf
commit
f9f0947457
@ -392,7 +392,7 @@ for i in ipairs(gates_list) do
|
|||||||
end,
|
end,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
effector = {
|
effector = {
|
||||||
action_on = function(pos,node) homedecor.flip_gate(pos,node,player,gate, "closed") end
|
action_on = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "closed") end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -420,7 +420,7 @@ for i in ipairs(gates_list) do
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
def.mesecons.effector = {
|
def.mesecons.effector = {
|
||||||
action_off = function(pos,node) homedecor.flip_gate(pos,node,player,gate, "open") end
|
action_off = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "open") end
|
||||||
}
|
}
|
||||||
|
|
||||||
minetest.register_node("homedecor:gate_"..gate.."_open", def)
|
minetest.register_node("homedecor:gate_"..gate.."_open", def)
|
||||||
|
Loading…
Reference in New Issue
Block a user