summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-08-13 18:19:29 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-08-13 18:19:29 -0400
commit23a27b38ae7b33588b1d12ad954fe3f62d2b4e14 (patch)
treec5076e2daece8ecae52ac2f8316ecd06c05756a3
parentfe00059eeade4bf0714df9369ba57e2bc60ad3bf (diff)
Revert "Show real item name in craft guide"
Players don't really like this, neither do I. See the comments attached to the original commit. Sorry, Wuzzy. :-( This reverts commit fe00059eeade4bf0714df9369ba57e2bc60ad3bf.
-rw-r--r--register.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/register.lua b/register.lua
index cc789a7..978646b 100644
--- a/register.lua
+++ b/register.lua
@@ -228,8 +228,6 @@ unified_inventory.register_page("craftguide", {
formspec = formspec.."listcolors[#00000000;#00000000]"
local item_name = unified_inventory.current_item[player_name]
if not item_name then return {formspec=formspec} end
- local displayed_name = minetest.registered_items[item_name].description
- if not displayed_name then displayed_name = item_name end
local dir = unified_inventory.current_craft_direction[player_name]
local rdir
@@ -245,7 +243,7 @@ unified_inventory.register_page("craftguide", {
formspec = formspec.."background[0.5,"..(formspecy + 0.2)..";8,3;ui_craftguide_form.png]"
formspec = formspec.."textarea["..craftresultx..","..craftresulty
- ..";10,1;;"..minetest.formspec_escape(F(role_text[dir])..": "..displayed_name)..";]"
+ ..";10,1;;"..minetest.formspec_escape(F(role_text[dir])..": "..item_name)..";]"
formspec = formspec..stack_image_button(0, formspecy, 1.1, 1.1, "item_button_"
.. rdir .. "_", ItemStack(item_name))