parent
b616ae4425
commit
8d58bd51cd
|
@ -527,6 +527,10 @@ function wagon:on_step(dtime)
|
||||||
if not players_in then
|
if not players_in then
|
||||||
if advtrains.outside_range(pos) then
|
if advtrains.outside_range(pos) then
|
||||||
--atdebug("wagon",self.id,"unloading (too far away)")
|
--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()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue