Skip to content

Commit

Permalink
Replace if with or
Browse files Browse the repository at this point in the history
  • Loading branch information
cx384 committed Jan 9, 2024
1 parent 7727d3f commit 55aca5f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions technic/legacy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55aca5f

Please sign in to comment.