Fix crash when obj tele's Nether→Overworld @ rain
This commit is contained in:
parent
58b9c3dbf5
commit
c2d0414255
3 changed files with 3 additions and 2 deletions
|
@ -434,8 +434,8 @@ minetest.register_abm({
|
|||
|
||||
-- Teleport
|
||||
obj:set_pos(target)
|
||||
mcl_worlds.dimension_change(obj, mcl_worlds.pos_to_dimension(target))
|
||||
if obj:is_player() then
|
||||
mcl_worlds.dimension_change(obj, mcl_worlds.pos_to_dimension(target))
|
||||
minetest.sound_play("mcl_portals_teleport", {pos=target, gain=0.5, max_hear_distance = 16})
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue