Replace if with or

This commit is contained in:
cx384 2024-01-09 17:39:02 +01:00
parent 7727d3f71f
commit 55aca5fd53
1 changed files with 1 additions and 6 deletions

View File

@ -55,12 +55,7 @@ function technic.get_stack_meta(itemstack)
if legacy_table then
local table = meta:to_table()
for k, v in pairs(legacy_table) do
local legacy_key = technic.legacy_meta_keys[k]
if legacy_key then
table.fields[legacy_key] = v
else
table.fields[k] = v
end
table.fields[technic.legacy_meta_keys[k] or k] = v
end
meta:from_table(table)
end