Skip to content

Commit

Permalink
fixed wrong logical operator sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
foxxelias authored Aug 12, 2024
1 parent 9575540 commit 4533038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion empty-bin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local function emptyContainer(container)
print('Emptying ' .. dfhack.items.getReadableDescription(container))
local pos = xyz2pos(dfhack.items.getPosition(container))
for _, item in ipairs(items) do
local skip_liquid = item:getType() == df.item_type.LIQUID_MISC or item:getType() == df.item_type.DRINK and not options.liquids
local skip_liquid = not options.liquids and (item:getType() == df.item_type.LIQUID_MISC or item:getType() == df.item_type.DRINK)
if skip_liquid then
print(' ' .. dfhack.items.getReadableDescription(item) .. ' was skipped because the --liquids flag was not provided')
else
Expand Down

0 comments on commit 4533038

Please sign in to comment.