mirror of
https://github.com/minetest-mods/technic.git
synced 2024-08-20 13:34:12 +02:00
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:
parent
23603e7f41
commit
f7d103cd96
@ -8,6 +8,7 @@ technic.chests = {}
|
|||||||
|
|
||||||
dofile(modpath.."/common.lua")
|
dofile(modpath.."/common.lua")
|
||||||
dofile(modpath.."/register.lua")
|
dofile(modpath.."/register.lua")
|
||||||
|
dofile(modpath.."/wooden_chest.lua")
|
||||||
dofile(modpath.."/iron_chest.lua")
|
dofile(modpath.."/iron_chest.lua")
|
||||||
dofile(modpath.."/copper_chest.lua")
|
dofile(modpath.."/copper_chest.lua")
|
||||||
dofile(modpath.."/silver_chest.lua")
|
dofile(modpath.."/silver_chest.lua")
|
||||||
|
@ -32,6 +32,7 @@ Gold = Gold
|
|||||||
Iron = Eisen
|
Iron = Eisen
|
||||||
Mithril = Mithril
|
Mithril = Mithril
|
||||||
Silver = Silber
|
Silver = Silber
|
||||||
|
Wooden = Holz
|
||||||
|
|
||||||
# Sorting
|
# Sorting
|
||||||
Sort =
|
Sort =
|
||||||
|
@ -30,6 +30,7 @@ Gold =
|
|||||||
Iron =
|
Iron =
|
||||||
Mithril =
|
Mithril =
|
||||||
Silver =
|
Silver =
|
||||||
|
Wooden =
|
||||||
|
|
||||||
# Sorting
|
# Sorting
|
||||||
Sort =
|
Sort =
|
||||||
|
14
technic_chests/wooden_chest.lua
Normal file
14
technic_chests/wooden_chest.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user