Fix crash when watcher leaves the game

This commit is contained in:
Jean-Patrick Guerrero 2016-02-25 10:26:17 +01:00
parent ea4709d796
commit ab7290cdc9

View File

@ -35,12 +35,9 @@ local function unwatching(name)
if original_pos[watcher] then
minetest.after(0.1, function()
watcher:setpos(original_pos[watcher])
original_pos[watcher] = {}
end)
end
minetest.after(0.2, function()
original_pos[watcher] = {}
end)
end
end