Replace deprecated function getpos
parent
05b7b0c35d
commit
81a041f067
2
init.lua
2
init.lua
|
@ -21,7 +21,7 @@ minetest.register_on_item_eat(function(hp_change, replace_with_item, itemstack,
|
|||
else
|
||||
eat_sound = { name = "sloweater_eat_generic", gain = 1 }
|
||||
end
|
||||
minetest.sound_play(eat_sound, {pos=user:getpos(), max_hear_distance = 16})
|
||||
minetest.sound_play(eat_sound, {pos=user:get_pos(), max_hear_distance = 16})
|
||||
return nil
|
||||
else
|
||||
return itemstack
|
||||
|
|
Loading…
Reference in New Issue