aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
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,