diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-01-18 23:28:23 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-01-18 23:28:23 +0100 |
commit | 647b3c8a4c80689fef41663fdad3619d006d38ac (patch) | |
tree | 4a5fb198d21a0a5d1fbb83a2eeda22ec28ca61cd | |
parent | fc67d4531a6cd53f29b14ce9f44da984149d9175 (diff) | |
download | advtrains-647b3c8a4c80689fef41663fdad3619d006d38ac.tar.gz advtrains-647b3c8a4c80689fef41663fdad3619d006d38ac.tar.bz2 advtrains-647b3c8a4c80689fef41663fdad3619d006d38ac.zip |
Removed last occurrence of minetest.env
-rw-r--r-- | advtrains/advtrains/trainlogic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/trainlogic.lua b/advtrains/advtrains/trainlogic.lua index 5bedfec..d2c86a4 100644 --- a/advtrains/advtrains/trainlogic.lua +++ b/advtrains/advtrains/trainlogic.lua @@ -487,7 +487,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.env: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):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 |