]> git.lizzy.rs Git - xdecor.git/commitdiff
Replace "getpos" with "get_pos"
authorPanquesito7 <51391473+Panquesito7@users.noreply.github.com>
Wed, 21 Aug 2019 04:39:21 +0000 (23:39 -0500)
committerJean-Patrick Guerrero <kilbith@users.noreply.github.com>
Sun, 25 Aug 2019 12:57:15 +0000 (14:57 +0200)
src/enchanting.lua

index 744dab41471d3f393068fa305f5e83ac20b8b479..aa0b30108424cf367f24b859105132db12eb0f5f 100644 (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