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", {
visual = "sprite",
visual_size = {x=0.75, y=0.75},
collisionbox = {0,0,0,0,0,0},
pointable = false,
physical = false,
textures = {"xdecor_book_open.png"},
static_save = false,
initial_properties = {
visual = "sprite",
visual_size = {x=0.75, y=0.75},
collisionbox = {0,0,0,0,0,0},
pointable = false,
physical = false,
textures = {"xdecor_book_open.png"},
static_save = false,
},
})
minetest.register_lbm({

View File

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