From e2daac4c33214f8eecb081340586a59dd6257357 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 18 Nov 2017 04:47:16 +0100 Subject: [PATCH] Fix fern being gray in flower pot --- mods/ITEMS/mcl_flowerpots/init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_flowerpots/init.lua b/mods/ITEMS/mcl_flowerpots/init.lua index 1e47ceb543..c9187eed14 100644 --- a/mods/ITEMS/mcl_flowerpots/init.lua +++ b/mods/ITEMS/mcl_flowerpots/init.lua @@ -19,7 +19,7 @@ local flowers = { {"sprucesapling", "mcl_core:sprucesapling", "Spruce Sapling Flower Pot"}, {"birchsapling", "mcl_core:birchsapling", "Birch Sapling Flower Pot"}, {"deadbush", "mcl_core:deadbush", "Dead Bush Flower Pot"}, - {"fern", "mcl_flowers:fern", "Fern Flower Pot"}, + {"fern", "mcl_flowers:fern", "Fern Flower Pot", {"mcl_flowers_fern_inv.png"}}, } local cubes = { @@ -90,7 +90,12 @@ for _, row in ipairs(flowers) do local flower = row[1] local flower_node = row[2] local desc = row[3] -local texture = minetest.registered_nodes[flower_node]["tiles"] +local texture +if row[4] then + texture = row[4] +else + texture = minetest.registered_nodes[flower_node]["tiles"] +end minetest.register_node("mcl_flowerpots:flower_pot_"..flower, { description = desc, _doc_items_create_entry = false,