Make node sounds positional
This commit is contained in:
parent
5da05836e7
commit
83b2d06af2
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ minetest.register_entity("shooter:arrow_entity", {
|
||||||
self.node_pos = npos
|
self.node_pos = npos
|
||||||
self.state = "stuck"
|
self.state = "stuck"
|
||||||
stop_arrow(self.object, tpos, true)
|
stop_arrow(self.object, tpos, true)
|
||||||
shooter:play_node_sound(node)
|
shooter:play_node_sound(node, npos)
|
||||||
end
|
end
|
||||||
self.timer = 0
|
self.timer = 0
|
||||||
end
|
end
|
||||||
|
@ -201,7 +201,7 @@ minetest.register_tool("shooter:crossbow_loaded", {
|
||||||
ent.node_pos = npos
|
ent.node_pos = npos
|
||||||
ent.state = "stuck"
|
ent.state = "stuck"
|
||||||
stop_arrow(object, pos, true)
|
stop_arrow(object, pos, true)
|
||||||
shooter:play_node_sound(node)
|
shooter:play_node_sound(node, npos)
|
||||||
end, obj, tpos, ppos)
|
end, obj, tpos, ppos)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue