From 4efad46a01ab7a031aa31797680fb4dc91d4796f Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 17 Feb 2021 18:53:44 +0000 Subject: [PATCH] Fix short_description fallback order (#10943) --- builtin/game/register.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/builtin/game/register.lua b/builtin/game/register.lua index b006957..1cff858 100644 --- a/builtin/game/register.lua +++ b/builtin/game/register.lua @@ -118,10 +118,6 @@ function core.register_item(name, itemdef) end itemdef.name = name - -- default short_description to first line of description - itemdef.short_description = itemdef.short_description or - (itemdef.description or ""):gsub("\n.*","") - -- Apply defaults and add to registered_* table if itemdef.type == "node" then -- Use the nodebox as selection box if it's not set manually