diff --git a/changelog.txt b/changelog.txt index 4a305e17..881737b7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Version: 3.0.24 Date: ? Changes: - Fixed digosaurs pywiki page missing [item=dried-meat] → 1 ore info. Resolves https://github.com/pyanodon/pybugreports/issues/725 + - Fixed Biofluid trips with 0 fluid when provider had less to give or requester asked for less than a certain amount --------------------------------------------------------------------------------------------------- Version: 3.0.23 Date: 2024-11-17 diff --git a/scripts/biofluid/biofluid.lua b/scripts/biofluid/biofluid.lua index 8e84babf..9014cc06 100644 --- a/scripts/biofluid/biofluid.lua +++ b/scripts/biofluid/biofluid.lua @@ -267,9 +267,7 @@ local function process_unfulfilled_requests(unfulfilled_request, relavant_fluids error("Invalid operator: " .. operator) end end - local can_give = contents.amount - (allocated_fluids_from_providers[p.unit_number] or 0) provider = p - unfulfilled_request.amount = min(amount, can_give) break ::continue:: end