mirror of
https://github.com/minetest-mods/enchanting.git
synced 2024-11-15 23:20:20 +01:00
Change deprecated getpos method to get_pos
This commit is contained in:
parent
13ea31ce12
commit
776be0b007
2
init.lua
2
init.lua
|
@ -222,7 +222,7 @@ minetest.register_entity(":xdecor:book_open", {
|
|||
physical = false,
|
||||
textures = {"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
|
||||
|
|
Loading…
Reference in New Issue
Block a user