aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-22 12:31:18 +0100
committerorwell96 <orwell@bleipb.de>2019-01-22 12:31:18 +0100
commit97a2ff7db064ffa7fdec430d6fa2963166372b5f (patch)
tree878dc3b94785c3c8247077b7279ed5cceabbb16b /advtrains/wagons.lua
parent240e7dd091c6c66ae6cdade3d9f4099756f60916 (diff)
downloadadvtrains-97a2ff7db064ffa7fdec430d6fa2963166372b5f.tar.gz
advtrains-97a2ff7db064ffa7fdec430d6fa2963166372b5f.tar.bz2
advtrains-97a2ff7db064ffa7fdec430d6fa2963166372b5f.zip
Fix dropping of items on wagon destroy
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index d5f7949..1b1aa96 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -218,6 +218,7 @@ function wagon:destroy()
--atdebug("[wagon ", self.id, "]: destroying")
self.object:remove()
+ return true
end
function wagon:on_step(dtime)