aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-01-18 23:28:23 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-01-18 23:28:23 +0100
commit647b3c8a4c80689fef41663fdad3619d006d38ac (patch)
tree4a5fb198d21a0a5d1fbb83a2eeda22ec28ca61cd
parentfc67d4531a6cd53f29b14ce9f44da984149d9175 (diff)
downloadadvtrains-647b3c8a4c80689fef41663fdad3619d006d38ac.tar.gz
advtrains-647b3c8a4c80689fef41663fdad3619d006d38ac.tar.bz2
advtrains-647b3c8a4c80689fef41663fdad3619d006d38ac.zip
Removed last occurrence of minetest.env
-rw-r--r--advtrains/advtrains/trainlogic.lua2
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