diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-11-03 09:03:23 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-11-03 09:03:23 +0100 |
commit | 31b579bc5c5e23eca78605ba082e7627334a468e (patch) | |
tree | 2c37caafb9506b129f3144ec0a7dee140b23e48c | |
parent | 20a1171144039e57cdab8f048077bb7027805726 (diff) | |
download | advtrains-31b579bc5c5e23eca78605ba082e7627334a468e.tar.gz advtrains-31b579bc5c5e23eca78605ba082e7627334a468e.tar.bz2 advtrains-31b579bc5c5e23eca78605ba082e7627334a468e.zip |
move a line to correct behavior
-rw-r--r-- | advtrains.zip | bin | 1326241 -> 1326241 bytes | |||
-rw-r--r-- | wagons.lua | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/advtrains.zip b/advtrains.zip Binary files differindex f8ae5e7..fc977e9 100644 --- a/advtrains.zip +++ b/advtrains.zip @@ -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
|