Skip to content

Commit

Permalink
Fix sticky pistons (#403)
Browse files Browse the repository at this point in the history
Fixed method name to get the position.
  • Loading branch information
bidaian authored and sfan5 committed Feb 15, 2018
1 parent 7537b9f commit d8f82e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_mvps/init.lua
Expand Up @@ -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]))
Expand Down

0 comments on commit d8f82e6

Please sign in to comment.