Skip to content
Snippets Groups Projects
Commit 4ebdf89f authored by Panquesito7's avatar Panquesito7 Committed by Jean-Patrick Guerrero
Browse files

Replace "getpos" with "get_pos"

parent cfca4ccd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment