forked from mtcontrib/builtin_item
Play sound at the location of the destroyed item
This commit is contained in:
parent
c63bbb0b88
commit
84bc111f0c
2
init.lua
2
init.lua
@ -94,7 +94,7 @@ minetest.register_entity(":__builtin:item", {
|
||||
|
||||
local name = minetest.env:get_node(p).name
|
||||
if name == "default:lava_flowing" or name == "default:lava_source" then
|
||||
minetest.sound_play("builtin_item_lava", {to_object=self.object})
|
||||
minetest.sound_play("builtin_item_lava", {pos=self.object:getpos()})
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user