From 31b579bc5c5e23eca78605ba082e7627334a468e Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 3 Nov 2016 09:03:23 +0100 Subject: move a line to correct behavior --- advtrains.zip | Bin 1326241 -> 1326241 bytes wagons.lua | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/advtrains.zip b/advtrains.zip index f8ae5e7..fc977e9 100644 Binary files a/advtrains.zip and b/advtrains.zip differ diff --git a/wagons.lua b/wagons.lua index d8e5034..239b122 100644 --- a/wagons.lua +++ b/wagons.lua @@ -100,7 +100,6 @@ function wagon:init_new_instance(train_id, properties) self[k]=v end end - minetest.after(1, function() self:reattach_all() end) self.initialized=true print("init_new_instance "..self.unique_id.." ("..self.train_id..")") return self.unique_id @@ -121,6 +120,7 @@ function wagon:init_from_wagon_save(uid) return end self.initialized=true + minetest.after(1, function() self:reattach_all() end) print("init_from_wagon_save "..self.unique_id.." ("..self.train_id..")") advtrains.update_trainpart_properties(self.train_id) end -- cgit v1.2.3