diff --git a/init.lua b/init.lua index 1c8b501..6e88c3a 100644 --- a/init.lua +++ b/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