Replace doors_blank.png with blank.png (#13)
This commit is contained in:
parent
6a6facca97
commit
ada6d79f77
38
init.lua
38
init.lua
@ -109,9 +109,9 @@ function frame.register(name)
|
|||||||
tiles = {
|
tiles = {
|
||||||
{name = "frame_frame.png"},
|
{name = "frame_frame.png"},
|
||||||
{name = def.inventory_image},
|
{name = def.inventory_image},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
-- node
|
-- node
|
||||||
@ -119,35 +119,35 @@ function frame.register(name)
|
|||||||
-- custom inventory override image first.
|
-- custom inventory override image first.
|
||||||
tiles = {
|
tiles = {
|
||||||
{name = "frame_frame.png"},
|
{name = "frame_frame.png"},
|
||||||
{name = def.inventory_image or "doors_blank.png"},
|
{name = def.inventory_image or "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
}
|
}
|
||||||
elseif def.drawtype ~= "normal" then
|
elseif def.drawtype ~= "normal" then
|
||||||
-- use tiles[1] only, but on frame
|
-- use tiles[1] only, but on frame
|
||||||
tiles = {
|
tiles = {
|
||||||
{name = "frame_frame.png"},
|
{name = "frame_frame.png"},
|
||||||
{name = def.tiles[1] and def.tiles[1].name or def.tiles[1] or "doors_blank.png"},
|
{name = def.tiles[1] and def.tiles[1].name or def.tiles[1] or "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
}
|
}
|
||||||
else -- type(def.tiles[1]) == "table" then
|
else -- type(def.tiles[1]) == "table" then
|
||||||
-- multiple tiles
|
-- multiple tiles
|
||||||
tiles = {
|
tiles = {
|
||||||
{name = "frame_frame.png"},
|
{name = "frame_frame.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = def.tiles[1] and def.tiles[1].name or def.tiles[1]
|
{name = def.tiles[1] and def.tiles[1].name or def.tiles[1]
|
||||||
or "doors_blank.png"},
|
or "blank.png"},
|
||||||
{name = def.tiles[2] and def.tiles[2].name or def.tiles[2]
|
{name = def.tiles[2] and def.tiles[2].name or def.tiles[2]
|
||||||
or def.tiles[1] and def.tiles[1].name or def.tiles[1]
|
or def.tiles[1] and def.tiles[1].name or def.tiles[1]
|
||||||
or "doors_blank.png"},
|
or "blank.png"},
|
||||||
{name = def.tiles[6] and def.tiles[6].name or def.tiles[6]
|
{name = def.tiles[6] and def.tiles[6].name or def.tiles[6]
|
||||||
or def.tiles[3] and def.tiles[3].name or def.tiles[3]
|
or def.tiles[3] and def.tiles[3].name or def.tiles[3]
|
||||||
or def.tiles[2] and def.tiles[2].name or def.tiles[2]
|
or def.tiles[2] and def.tiles[2].name or def.tiles[2]
|
||||||
or def.tiles[1] and def.tiles[1].name or def.tiles[1]
|
or def.tiles[1] and def.tiles[1].name or def.tiles[1]
|
||||||
or "doors_blank.png"},
|
or "blank.png"},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -184,10 +184,10 @@ minetest.register_node("frame:empty", {
|
|||||||
wield_image = "frame_frame.png",
|
wield_image = "frame_frame.png",
|
||||||
tiles = {
|
tiles = {
|
||||||
{name = "frame_frame.png"},
|
{name = "frame_frame.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
{name = "doors_blank.png"},
|
{name = "blank.png"},
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user