Fix 'initial_properties' warning
This commit is contained in:
parent
672d8ac2f7
commit
0d8afaff76
@ -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({
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user