diff options
author | Wuzzy <almikes@aol.com> | 2016-07-19 19:24:07 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-07-19 19:24:07 +0200 |
commit | e3f119c84f6a2ec6e68e553354ce9bf1c768efd8 (patch) | |
tree | 727d7b0652bff6c91f60d58ff8d5984108fc319a /init.lua | |
parent | 4d7d51cd27ccb96afb7f4dde5e1fed17377e6ce7 (diff) |
Update fire help texts, add flint and steel help
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -12,7 +12,7 @@ local forced_nodes = { local item_name_overrides = { ["screwdriver:screwdriver"] = "Screwdriver", - ["fire:basic_flame"] = "Fire", + ["fire:basic_flame"] = "Basic Flame", } local groups_to_string = function(grouptable) @@ -403,7 +403,12 @@ local function gather_descs() name = def.description local forced = false for i=1, #forced_nodes do - if name == forced_nodes then forced = true end + if id == forced_nodes[i] then forced = true end + end + if item_name_overrides[id] ~= nil then + name = item_name_overrides[id] + else + name = def.description end if not (name == nil or name == "" or def.groups.not_in_creative_inventory) or forced then if help.longdesc[id] ~= nil then |