Skip to content
Snippets Groups Projects
Commit 6a49dbf8 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'teleport_trap_fix' into 'master'

Teleport trap fix

teleport on teleport traps happens at the end of the tick so items on them can be picked up
parents 8b2b124e 7ea8d06f
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ newEntity{ base = "TRAP_TELEPORT",
message = "@Target@ is teleported away.",
pressure_trap = true,
triggered = function(self, x, y, who)
who:teleportRandom(x, y, 100)
game:onTickEnd(function()who:teleportRandom(x, y, 100)end)
return true
end
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment