Allow to wash off top layer off banners
This commit is contained in:
parent
d2632ab7ec
commit
2c9d1da73a
3 changed files with 35 additions and 3 deletions
|
@ -248,7 +248,7 @@ for colorid, colortab in pairs(mcl_banners.colors) do
|
|||
end
|
||||
|
||||
-- Create a banner description containing all the layer names
|
||||
local make_advanced_banner_description = function(description, layers)
|
||||
mcl_banners.make_advanced_banner_description = function(description, layers)
|
||||
if layers == nil or #layers == 0 then
|
||||
-- No layers, revert to default
|
||||
return ""
|
||||
|
@ -393,7 +393,7 @@ local banner_pattern_craft = function(itemstack, player, old_craft_grid, craft_i
|
|||
imeta:set_string("layers", minetest.serialize(layers))
|
||||
|
||||
local odesc = itemstack:get_definition().description
|
||||
local description = make_advanced_banner_description(odesc, layers)
|
||||
local description = mcl_banners.make_advanced_banner_description(odesc, layers)
|
||||
imeta:set_string("description", description)
|
||||
return itemstack
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue