diff options
author | Eduardo TrĂ¡pani <etrapani@gmail.com> | 2018-02-15 07:47:24 -0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-02-15 11:47:24 +0100 |
commit | d8f82e6771dc21122a59b3f65dbeb102dab2c372 (patch) | |
tree | 8d0e961db3287fdcc2640d67e51b7b0b2200866e | |
parent | 7537b9f38101a765481bf18899d930c9b1ea6e70 (diff) |
Fix sticky pistons (#403)
Fixed method name to get the position.
-rw-r--r-- | mesecons_mvps/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua index c53946d..428c78a 100644 --- a/mesecons_mvps/init.lua +++ b/mesecons_mvps/init.lua @@ -219,7 +219,7 @@ function mesecon.mvps_move_objects(pos, dir, nodestack, movefactor) movefactor = movefactor or 1 dir = vector.multiply(dir, movefactor) for id, obj in pairs(minetest.object_refs) do - local obj_pos = obj:get_pos() + local obj_pos = obj:getpos() local cbox = obj:get_properties().collisionbox local min_pos = vector.add(obj_pos, vector.new(cbox[1], cbox[2], cbox[3])) local max_pos = vector.add(obj_pos, vector.new(cbox[4], cbox[5], cbox[6])) |