@@ -45,7 +45,7 @@ public void doKeepExact_does_nothing_if_no_destination_tank_exists() {
4545 new FluidTankList (false , new FluidTank (water .copy (), 64000 )));
4646
4747 // Tell it to keep exact from a machine with an empty fluid tank and null target fluid tank
48- int amountTransferred = cfr .doKeepExact (1000 , source , null , isWater , 1000 );
48+ int amountTransferred = cfr .doKeepExact (1000 , source , null , isWater , 1000 , true );
4949
5050 MatcherAssert .assertThat ("Unexpectedly moved fluids, nothing is supposed to happen" , amountTransferred , is (0 ));
5151 }
@@ -66,7 +66,7 @@ public void doKeepExact_moves_one_fluid_into_an_empty_tank() {
6666 new FluidTankList (false ));
6767
6868 // Tell it to keep exact from a machine with an empty fluid tank and no target fluid tank
69- int amountTransferred = cfr .doKeepExact (1000 , source , dest , isWater , 1000 );
69+ int amountTransferred = cfr .doKeepExact (1000 , source , dest , isWater , 1000 , true );
7070
7171 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (1000 ));
7272 }
@@ -84,7 +84,7 @@ public void doKeepExact_moves_only_as_much_fluid_as_exists_in_the_source() {
8484 IFluidHandler dest = new FluidHandlerProxy (new FluidTankList (false , new FluidTank (64000 )),
8585 new FluidTankList (false ));
8686
87- int amountTransferred = cfr .doKeepExact (10000 , source , dest , isWater , 10000 );
87+ int amountTransferred = cfr .doKeepExact (10000 , source , dest , isWater , 10000 , true );
8888
8989 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (1234 ));
9090 }
@@ -104,7 +104,7 @@ public void doKeepExact_moves_only_the_fluid_required_if_more_could_be_moved() {
104104 new FluidTank (new FluidStack (FluidRegistry .WATER , 100 ), 64000 )),
105105 new FluidTankList (false ));
106106
107- int amountTransferred = cfr .doKeepExact (10000 , source , dest , isWater , 144 );
107+ int amountTransferred = cfr .doKeepExact (10000 , source , dest , isWater , 144 , true );
108108
109109 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (44 ));
110110 }
@@ -129,7 +129,7 @@ public void doKeepExact_moves_multiple_valid_fluids() {
129129 new FluidTankList (false ));
130130
131131 // accept any fluid this time
132- int amountTransferred = cfr .doKeepExact (10000 , source , dest , fs -> true , 144 );
132+ int amountTransferred = cfr .doKeepExact (10000 , source , dest , fs -> true , 144 , true );
133133
134134 // expect that 44mB of water and 144mB of lava will be moved
135135 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (44 + 144 ));
@@ -164,7 +164,7 @@ public void doKeepExact_respects_transfer_limit_with_one_fluid() {
164164 new FluidTankList (false ));
165165
166166 // accept any fluid this time
167- int amountTransferred = cfr .doKeepExact (100 , source , dest , fs -> true , 144 );
167+ int amountTransferred = cfr .doKeepExact (100 , source , dest , fs -> true , 144 , true );
168168
169169 // expect that at most 100mB of fluids total will be moved this tick, as if possible it would do 144mB
170170 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (100 ));
@@ -190,7 +190,7 @@ public void doKeepExact_respects_transfer_limit_with_multiple_fluids() {
190190 new FluidTankList (false ));
191191
192192 // accept any fluid this time
193- int amountTransferred = cfr .doKeepExact (100 , source , dest , fs -> true , 144 );
193+ int amountTransferred = cfr .doKeepExact (100 , source , dest , fs -> true , 144 , true );
194194
195195 // expect that at most 100mB of fluids total will be moved this tick, as if possible it would do 188mB
196196 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (100 ));
@@ -216,7 +216,7 @@ public void doKeepExact_does_nothing_if_levels_are_already_correct_in_dest() {
216216 new FluidTankList (false ));
217217
218218 // accept any fluid this time
219- int amountTransferred = cfr .doKeepExact (10000 , source , dest , fs -> true , 144 );
219+ int amountTransferred = cfr .doKeepExact (10000 , source , dest , fs -> true , 144 , true );
220220
221221 // expect that no fluids are moved because Keep Exact levels are already met
222222 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (0 ));
@@ -242,7 +242,7 @@ public void doKeepExact_ignores_fluids_not_in_filter() {
242242 new FluidTankList (false ));
243243
244244 // accept any fluid this time
245- int amountTransferred = cfr .doKeepExact (10000 , source , dest , isWater , 144 );
245+ int amountTransferred = cfr .doKeepExact (10000 , source , dest , isWater , 144 , true );
246246
247247 // expect that no fluids are moved because already have enough water and lava isn't in the filter
248248 MatcherAssert .assertThat ("Wrong fluid amount moved" , amountTransferred , is (0 ));
0 commit comments