summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua9
1 files changed, 8 insertions, 1 deletions
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