Harden a number of minetest.after player checks
This commit is contained in:
parent
2132cdacc5
commit
f022b747b0
8 changed files with 42 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue