Commit 8b1250d0 authored by TenPlus1's avatar TenPlus1
Browse files

tweak

parent 865dd147
...@@ -319,9 +319,9 @@ minetest.register_abm({ ...@@ -319,9 +319,9 @@ minetest.register_abm({
z = meta:get_int("z") z = meta:get_int("z")
} }
for k, player in pairs(objs) do for n = 1, #objs do
if player then if objs[n] then
-- play sound on portal end -- play sound on portal end
minetest.sound_play("portal_close", { minetest.sound_play("portal_close", {
...@@ -331,7 +331,7 @@ minetest.register_abm({ ...@@ -331,7 +331,7 @@ minetest.register_abm({
}) })
-- move player/object -- move player/object
player:setpos(target_coords) objs[n]:setpos(target_coords)
-- paricle effects on arrival -- paricle effects on arrival
tp_effect(target_coords) tp_effect(target_coords)
......
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