diff options
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r-- | advtrains/wagons.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 5564fa5..ad4a5ab 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -527,6 +527,10 @@ function wagon:on_step(dtime) if not players_in then if advtrains.outside_range(pos) then --atdebug("wagon",self.id,"unloading (too far away)") + -- Workaround until minetest engine deletes attached sounds + if self.sound_loop_handle then + minetest.sound_stop(self.sound_loop_handle) + end self.object:remove() end end |