summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Stolberg <joe.stolberg@gmx.de>2017-06-22 19:16:37 +0200
committerJoachim Stolberg <joe.stolberg@gmx.de>2017-06-22 19:16:37 +0200
commit095e93631c6befbf79f8f4aaecc2b8d31335aa31 (patch)
tree029c858703f47a2629c6978a169fb3d3bb3fc947
parent28e046e86b4d75d7b56e9b08f396f076694f9a29 (diff)
sound bugfix
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 92a728e..b575fb4 100644
--- a/init.lua
+++ b/init.lua
@@ -132,7 +132,7 @@ function hook:on_step(dtime)
-- sound control
if vx ~= 0 or vz ~= 0 or self.speed_up ~= 0 then
if self.sound == nil then
- self.sound = minetest.sound_play({name="crane"},{object=self.object,
+ self.sound = minetest.sound_play({name="crane"},{object=self.object, pos=pos,
gain=towercrane.gain, max_hear_distance=20,
loop=true})
end