aboutsummaryrefslogtreecommitdiff
path: root/advtrains/couple.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-01-14 11:19:15 +0100
committerorwell96 <orwell@bleipb.de>2021-02-10 16:42:15 +0100
commit556e0782f718f05decf2a9e2b14ab20b5097c1ab (patch)
treea8c167ea9bf5585f9c7757ee4de98b6fc0ca2926 /advtrains/couple.lua
parent1b8a3dfaf21cd485b7018491c70ebff4c639bfcf (diff)
downloadadvtrains-556e0782f718f05decf2a9e2b14ab20b5097c1ab.tar.gz
advtrains-556e0782f718f05decf2a9e2b14ab20b5097c1ab.tar.bz2
advtrains-556e0782f718f05decf2a9e2b14ab20b5097c1ab.zip
Replace deprecated object:getxxx()/setxxx() by get_xxx()/set_xxx()
Diffstat (limited to 'advtrains/couple.lua')
-rw-r--r--advtrains/couple.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/couple.lua b/advtrains/couple.lua
index 1e16690..a38ca69 100644
--- a/advtrains/couple.lua
+++ b/advtrains/couple.lua
@@ -47,7 +47,7 @@ minetest.register_entity("advtrains:discouple", {
return
end
--getyaw seems to be a reliable method to check if an object is loaded...if it returns nil, it is not.
- if not self.wagon.object:getyaw() then
+ if not self.wagon.object:get_yaw() then
self.object:remove()
return
end
@@ -145,7 +145,7 @@ minetest.register_entity("advtrains:couple", {
end
local pos_median=advtrains.pos_median(tp1, tp2)
if not vector.equals(pos_median, self.object:getpos()) then
- self.object:setpos(pos_median)
+ self.object:set_pos(pos_median)
end
self.position_set=true
end