From 3ba4924b376e2a87024f25ba901f6f94d21a4889 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 16 Aug 2016 00:36:47 +0200 Subject: Use correct images for doors --- init.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index af64435..251baf0 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,3 @@ --- FIXME: Fix item image of doors (Wooden Door, etc.) -- TODO: Mark appropriate entries as hidden (esp. cloud and dirt with footsteps) local groupdefs = { @@ -69,11 +68,19 @@ local item_name_overrides = { ["doors:door_obsidian_glass_a"] = minetest.registered_items["doors:door_obsidian_glass"].description, } +local image_overrides = { + ["doors:door_wood_a"] = minetest.registered_items["doors:door_wood"].inventory_image, + ["doors:door_steel_a"] = minetest.registered_items["doors:door_steel"].inventory_image, + ["doors:door_glass_a"] = minetest.registered_items["doors:door_glass"].inventory_image, + ["doors:door_obsidian_glass_a"] = minetest.registered_items["doors:door_obsidian_glass"].inventory_image, +} + doc.sub.items.add_real_group_names(groupdefs) doc.sub.items.add_notable_groups(miscgroups) doc.sub.items.add_forced_item_entries(forced_items) doc.sub.items.add_suppressed_item_entries(suppressed_items) doc.sub.items.add_item_name_overrides(item_name_overrides) +doc.sub.items.add_item_image_overrides(image_overrides) -- Minetest Game Factoids -- cgit v1.2.3