Commit 632d0685 authored by TenPlus1's avatar TenPlus1
Browse files

changed from moveto to setpos for pad/potion teleport

parent 33deefce
...@@ -300,6 +300,7 @@ minetest.register_abm({ ...@@ -300,6 +300,7 @@ minetest.register_abm({
} }
for k, player in pairs(objs) do for k, player in pairs(objs) do
if player:get_player_name() then if player:get_player_name() then
-- play sound on portal end -- play sound on portal end
...@@ -310,7 +311,7 @@ minetest.register_abm({ ...@@ -310,7 +311,7 @@ minetest.register_abm({
}) })
-- move player/object -- move player/object
player:moveto(target_coords, false) player:setpos(target_coords)
-- paricle effects on arrival -- paricle effects on arrival
tp_effect(target_coords) tp_effect(target_coords)
...@@ -373,6 +374,7 @@ potion_entity.on_step = function(self, dtime) ...@@ -373,6 +374,7 @@ potion_entity.on_step = function(self, dtime)
end end
self.object:remove() self.object:remove()
return return
end end
...@@ -411,4 +413,4 @@ function throw_potion(itemstack, player) ...@@ -411,4 +413,4 @@ function throw_potion(itemstack, player)
obj:setyaw(player:get_look_yaw() + math.pi) obj:setyaw(player:get_look_yaw() + math.pi)
obj:get_luaentity().player = player obj:get_luaentity().player = player
end end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment