aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-05-29 21:33:09 +0200
committerorwell96 <mono96.mml@gmail.com>2016-05-29 21:33:09 +0200
commit62f5e05c097aa8838c9863081902fe84450b4ba0 (patch)
tree8a2c42c5d09234abf82a056ef06e440c0035eb34 /wagons.lua
parent2c864564d25eb1b30a359f62a8dcf9508cf7f104 (diff)
downloadadvtrains-62f5e05c097aa8838c9863081902fe84450b4ba0.tar.gz
advtrains-62f5e05c097aa8838c9863081902fe84450b4ba0.tar.bz2
advtrains-62f5e05c097aa8838c9863081902fe84450b4ba0.zip
added trackdb and unloaded wagons handling
Diffstat (limited to 'wagons.lua')
-rw-r--r--wagons.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/wagons.lua b/wagons.lua
index 7c634f0..ea54e19 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -89,6 +89,8 @@ function wagon:on_activate(staticdata, dtime_s)
end
function wagon:get_staticdata()
+ --save to table before being unloaded
+ advtrains.wagon_save[self.unique_id]=advtrains.merge_tables(self)
return minetest.serialize({
unique_id=self.unique_id,
train_id=self.train_id,