Skip to content
Permalink
Browse files

Fix sticky pistons (#403)

Fixed method name to get the position.
  • Loading branch information...
bidaian authored and sfan5 committed Feb 15, 2018
1 parent 7537b9f commit d8f82e6771dc21122a59b3f65dbeb102dab2c372
Showing with 1 addition and 1 deletion.
  1. +1 −1 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]))

0 comments on commit d8f82e6

Please sign in to comment.
You can’t perform that action at this time.