Skip to content
Snippets Groups Projects
Commit 8b1250d0 authored by TenPlus1's avatar TenPlus1
Browse files

tweak

parent 865dd147
No related branches found
No related tags found
No related merge requests found
......@@ -319,9 +319,9 @@ minetest.register_abm({
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
minetest.sound_play("portal_close", {
......@@ -331,7 +331,7 @@ minetest.register_abm({
})
-- move player/object
player:setpos(target_coords)
objs[n]:setpos(target_coords)
-- paricle effects on arrival
tp_effect(target_coords)
......
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