diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-06-09 22:16:24 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-06-09 22:16:24 +0200 |
commit | 4e6c147d56c8cf31f80804da2250d90f8ef60d9d (patch) | |
tree | 42fa499884f613eb6d383bb967d11517e83f69cf /trainlogic.lua | |
parent | f9a7fa68b176f499375e1b6cbffcf5f2c52317e1 (diff) | |
download | advtrains-4e6c147d56c8cf31f80804da2250d90f8ef60d9d.tar.gz advtrains-4e6c147d56c8cf31f80804da2250d90f8ef60d9d.tar.bz2 advtrains-4e6c147d56c8cf31f80804da2250d90f8ef60d9d.zip |
check for object load via the getyaw trick and not by checking the object table
Diffstat (limited to 'trainlogic.lua')
-rw-r--r-- | trainlogic.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trainlogic.lua b/trainlogic.lua index f7a9363..7d7fe9f 100644 --- a/trainlogic.lua +++ b/trainlogic.lua @@ -81,6 +81,10 @@ advtrains.save = function() else data.driver_name=nil end + if data.discouple then + data.discouple.object:remove() + data.discouple=nil + end end --print(dump(advtrains.wagon_save)) datastr = minetest.serialize(advtrains.wagon_save) |