Merge pull request #4 from HybridDog/crashfix
fix infinite loop after digging a stargate
This commit is contained in:
commit
76d1b01e52
@ -145,7 +145,6 @@ function removeGate (pos)
|
|||||||
local player_name=meta:get_string("owner")
|
local player_name=meta:get_string("owner")
|
||||||
local gateNodes=minetest.deserialize(meta:get_string("gateNodes"))
|
local gateNodes=minetest.deserialize(meta:get_string("gateNodes"))
|
||||||
if gateNodes ~= nil then
|
if gateNodes ~= nil then
|
||||||
core.remove_node(gateNodes[1].pos)
|
|
||||||
stargate.unregisterGate(player_name,gateNodes[1].pos)
|
stargate.unregisterGate(player_name,gateNodes[1].pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user