From 095e93631c6befbf79f8f4aaecc2b8d31335aa31 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Thu, 22 Jun 2017 19:16:37 +0200 Subject: [PATCH] sound bugfix --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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