Merge pull request #6145 from drwoops/bug-5921

restore the invariant that draining is the inverse of filling (bug #5921)
This commit is contained in:
simibubi 2024-07-25 17:06:29 +02:00 committed by GitHub
commit 57a7b66553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ public abstract class FluidManipulationBehaviour extends BlockEntityBehaviour {
BiConsumer<BlockPos, Integer> add, boolean searchDownward) throws ChunkNotLoadedException {
Level world = getWorld();
int maxBlocks = maxBlocks();
int maxRange = canDrainInfinitely(fluid) ? maxRange() : maxRange() / 2;
int maxRange = maxRange();
int maxRangeSq = maxRange * maxRange;
int i;