Fix short_description fallback order (#10943)

This commit is contained in:
rubenwardy
2021-02-17 18:53:44 +00:00
committed by GitHub
parent 7832b6843e
commit a8f6befd39
4 changed files with 20 additions and 14 deletions

View File

@@ -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