optional of course

This commit is contained in:
Lars Müller 2024-05-16 18:19:20 +02:00 committed by GitHub
parent 18376c8e29
commit 2b2e92620f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ function core.override_item(name, redefinition, del_fields)
for k, v in pairs(redefinition) do
rawset(item, k, v)
end
for _, field in ipairs(del_fields) do
for _, field in ipairs(del_fields or {}) do
rawset(item, field, nil)
end
register_item_raw(item)