Replace "getpos" with "get_pos"

master
Panquesito7 2019-08-20 23:39:21 -05:00 committed by Jean-Patrick Guerrero
parent cfca4ccdf3
commit 4ebdf89fcb
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ minetest.register_entity("xdecor:book_open", {
physical = false,
textures = {"xdecor_book_open.png"},
on_activate = function(self)
local pos = self.object:getpos()
local pos = self.object:get_pos()
local pos_under = {x = pos.x, y = pos.y - 1, z = pos.z}
if minetest.get_node(pos_under).name ~= "xdecor:enchantment_table" then