restore the invariant that draining is the inverse of filling

This commit is contained in:
drwoops 2024-02-19 10:37:56 +01:00
parent 2201d87da7
commit 757f4e2699

View file

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