Fix short_description fallback order (#10943)

This commit is contained in:
rubenwardy 2021-02-17 18:53:44 +00:00 committed by Nils Dagsson Moskopp
parent 76ccee8cdf
commit 4efad46a01
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 0 additions and 4 deletions

View File

@ -118,10 +118,6 @@ function core.register_item(name, itemdef)
end end
itemdef.name = name 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 -- Apply defaults and add to registered_* table
if itemdef.type == "node" then if itemdef.type == "node" then
-- Use the nodebox as selection box if it's not set manually -- Use the nodebox as selection box if it's not set manually