mirror of
https://github.com/minetest-mods/towercrane.git
synced 2024-11-22 23:33:50 +01:00
sound bugfix
This commit is contained in:
parent
28e046e86b
commit
095e93631c
2
init.lua
2
init.lua
@ -132,7 +132,7 @@ function hook:on_step(dtime)
|
|||||||
-- sound control
|
-- sound control
|
||||||
if vx ~= 0 or vz ~= 0 or self.speed_up ~= 0 then
|
if vx ~= 0 or vz ~= 0 or self.speed_up ~= 0 then
|
||||||
if self.sound == nil 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,
|
gain=towercrane.gain, max_hear_distance=20,
|
||||||
loop=true})
|
loop=true})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user