forked from minetest-mods/enchanting
Merge branch 'github'
This commit is contained in:
commit
f8f2b1a8be
2
init.lua
2
init.lua
@ -222,7 +222,7 @@ minetest.register_entity(":xdecor:book_open", {
|
|||||||
physical = false,
|
physical = false,
|
||||||
textures = {"book_open.png"},
|
textures = {"book_open.png"},
|
||||||
on_activate = function(self)
|
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}
|
local pos_under = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||||
|
|
||||||
if minetest.get_node(pos_under).name ~= "xdecor:enchantment_table" then
|
if minetest.get_node(pos_under).name ~= "xdecor:enchantment_table" then
|
||||||
|
Loading…
Reference in New Issue
Block a user