diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-05-29 21:33:09 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-05-29 21:33:09 +0200 |
commit | 62f5e05c097aa8838c9863081902fe84450b4ba0 (patch) | |
tree | 8a2c42c5d09234abf82a056ef06e440c0035eb34 /wagons.lua | |
parent | 2c864564d25eb1b30a359f62a8dcf9508cf7f104 (diff) | |
download | advtrains-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.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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,
|