Fix 'initial_properties' warning

This commit is contained in:
Wuzzy 2023-12-27 21:57:46 +01:00
parent 672d8ac2f7
commit 0d8afaff76
2 changed files with 17 additions and 13 deletions

View File

@ -248,13 +248,15 @@ xdecor.register("enchantment_table", {
}) })
minetest.register_entity("xdecor:book_open", { minetest.register_entity("xdecor:book_open", {
visual = "sprite", initial_properties = {
visual_size = {x=0.75, y=0.75}, visual = "sprite",
collisionbox = {0,0,0,0,0,0}, visual_size = {x=0.75, y=0.75},
pointable = false, collisionbox = {0,0,0,0,0,0},
physical = false, pointable = false,
textures = {"xdecor_book_open.png"}, physical = false,
static_save = false, textures = {"xdecor_book_open.png"},
static_save = false,
},
}) })
minetest.register_lbm({ minetest.register_lbm({

View File

@ -181,12 +181,14 @@ xdecor.register("itemframe", {
}) })
minetest.register_entity("xdecor:f_item", { minetest.register_entity("xdecor:f_item", {
visual = "wielditem", initial_properties = {
visual_size = {x = 0.33, y = 0.33}, visual = "wielditem",
collisionbox = {0,0,0,0,0,0}, visual_size = {x = 0.33, y = 0.33},
pointable = false, collisionbox = {0,0,0,0,0,0},
physical = false, pointable = false,
textures = {"air"}, physical = false,
textures = {"air"},
},
on_activate = function(self, staticdata) on_activate = function(self, staticdata)
local pos = self.object:get_pos() local pos = self.object:get_pos()
if minetest.get_node(pos).name ~= "xdecor:itemframe" then if minetest.get_node(pos).name ~= "xdecor:itemframe" then