Rename default chest to "Wooden Chest"

All the chests added by technic specify their material in their
description, so the description "Chest" for the default chest looks
ambiguous.  Rename it to seamlessly fit into the range of chest types.
This commit is contained in:
Zefram 2014-06-20 15:44:05 +01:00 committed by RealBadAngel
parent 23603e7f41
commit f7d103cd96
4 changed files with 17 additions and 0 deletions

View File

@ -8,6 +8,7 @@ technic.chests = {}
dofile(modpath.."/common.lua")
dofile(modpath.."/register.lua")
dofile(modpath.."/wooden_chest.lua")
dofile(modpath.."/iron_chest.lua")
dofile(modpath.."/copper_chest.lua")
dofile(modpath.."/silver_chest.lua")

View File

@ -32,6 +32,7 @@ Gold = Gold
Iron = Eisen
Mithril = Mithril
Silver = Silber
Wooden = Holz
# Sorting
Sort =

View File

@ -30,6 +30,7 @@ Gold =
Iron =
Mithril =
Silver =
Wooden =
# Sorting
Sort =

View File

@ -0,0 +1,14 @@
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
if minetest.registered_nodes["default:chest"].description == "Chest" then
minetest.override_item("default:chest", { description = S("%s Chest"):format(S("Wooden")) })
end
if minetest.registered_nodes["default:chest_locked"].description == "Locked Chest" then
minetest.override_item("default:chest_locked", { description = S("%s Locked Chest"):format(S("Wooden")) })
end