Skip to content

Commit

Permalink
fix: Fixed a crash. Resolves #8
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon authored Dec 10, 2024
1 parent 72da5ef commit 06cd7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ local function update_unit(unit_data, unit_number, force)
if unit_data.count < to_add then
to_add = unit_data.count
end
if to_add > 0 then
if to_add > 0.001 then
local amount_added = entity.insert_fluid {name = item, amount = to_add, temperature = unit_data.temperature}
unit_data.count = unit_data.count - amount_added
inventory_count = inventory_count + amount_added
Expand Down

0 comments on commit 06cd7af

Please sign in to comment.