Replace deprecated getpos call

This commit is contained in:
stujones11
2019-03-05 19:40:54 +00:00
parent be9579a365
commit 3fe7dd2249
4 changed files with 6 additions and 6 deletions

View File

@ -307,7 +307,7 @@ minetest.register_entity("3d_armor_stand:armor_entity", {
pos = nil,
timer = 0,
on_activate = function(self)
local pos = self.object:getpos()
local pos = self.object:get_pos()
if pos then
self.pos = vector.round(pos)
update_entity(pos)