mirror of
https://codeberg.org/tenplus1/teleport_potion.git
synced 2025-03-15 06:01:24 +00:00
tweak
This commit is contained in:
parent
865dd1475a
commit
8b1250d0f8
1 changed files with 3 additions and 3 deletions
6
init.lua
6
init.lua
|
@ -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({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- 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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue