Harden a number of minetest.after player checks

This commit is contained in:
Wuzzy 2018-06-03 16:44:37 +02:00
parent 2132cdacc5
commit f022b747b0
8 changed files with 42 additions and 23 deletions

View file

@ -404,6 +404,9 @@ minetest.register_abm({
end
-- teleport the object
minetest.after(3, function(obj, pos, target)
if not obj:get_luaentity() then
return
end
-- Prevent quick back-and-forth teleportation
if portal_cooloff[obj] then
return