mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-28 05:45:05 +01:00
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:
commit
57a7b66553
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue