mirror of
https://codeberg.org/tenplus1/teleport_potion.git
synced 2025-03-15 06:01:24 +00:00
changed from moveto to setpos for pad/potion teleport
This commit is contained in:
parent
33deefceba
commit
632d0685b6
1 changed files with 4 additions and 2 deletions
4
init.lua
4
init.lua
|
@ -300,6 +300,7 @@ minetest.register_abm({
|
|||
}
|
||||
|
||||
for k, player in pairs(objs) do
|
||||
|
||||
if player:get_player_name() then
|
||||
|
||||
-- play sound on portal end
|
||||
|
@ -310,7 +311,7 @@ minetest.register_abm({
|
|||
})
|
||||
|
||||
-- move player/object
|
||||
player:moveto(target_coords, false)
|
||||
player:setpos(target_coords)
|
||||
|
||||
-- paricle effects on arrival
|
||||
tp_effect(target_coords)
|
||||
|
@ -373,6 +374,7 @@ potion_entity.on_step = function(self, dtime)
|
|||
end
|
||||
|
||||
self.object:remove()
|
||||
|
||||
return
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue