Make node sounds positional

This commit is contained in:
stujones11 2014-10-25 01:29:35 +01:00
parent 5da05836e7
commit 83b2d06af2

View file

@ -149,7 +149,7 @@ minetest.register_entity("shooter:arrow_entity", {
self.node_pos = npos
self.state = "stuck"
stop_arrow(self.object, tpos, true)
shooter:play_node_sound(node)
shooter:play_node_sound(node, npos)
end
self.timer = 0
end
@ -201,7 +201,7 @@ minetest.register_tool("shooter:crossbow_loaded", {
ent.node_pos = npos
ent.state = "stuck"
stop_arrow(object, pos, true)
shooter:play_node_sound(node)
shooter:play_node_sound(node, npos)
end, obj, tpos, ppos)
return itemstack
end