mirror of
https://github.com/HybridDog/builtin_item.git
synced 2024-11-10 20:40:20 +01:00
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
|
local name = minetest.env:get_node(p).name
|
||||||
if name == "default:lava_flowing" or name == "default:lava_source" then
|
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()
|
self.object:remove()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user