1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-23 01:10:26 +01:00

Play sound at the location of the destroyed item

This commit is contained in:
PilzAdam 2012-10-01 20:00:00 +02:00
parent c63bbb0b88
commit 84bc111f0c
2 changed files with 1 additions and 1 deletions

View File

@ -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.