diff options
-rw-r--r-- | advtrains/trainlogic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 449d624..741d5fb 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -637,7 +637,7 @@ function advtrains.update_trainpart_properties(train_id, invert_flipstate) if not wagon then if advtrains.wagon_save[w_id] then --spawn a new and initialize it with the properties from wagon_save - wagon=minetest.add_entity(train.last_pos, advtrains.wagon_save[w_id].entity_name):get_luaentity() + wagon=minetest.add_entity(train.last_pos, advtrains.wagon_save[w_id].entity_name or advtrains.wagon_save[w_id].type):get_luaentity() if not wagon then minetest.chat_send_all("[advtrains] Warning: Wagon "..advtrains.wagon_save[w_id].entity_name.." does not exist. Make sure all required modules are loaded!") else |