Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,7 @@ public void updateTick(World world, BlockPos pos, IBlockState state, Random rand
if (!(state.getBlock() instanceof BlockSwampWater && ((BlockSwampWater) state.getBlock()).isUnderwaterBlock)) {
// check adjacent block levels if non-source
if (quantaRemaining < quantaPerBlock) {
if (world.getBlockState(pos.add(0, -densityDir, 0)).getBlock() == this ||
world.getBlockState(pos.add(-1, -densityDir, 0)).getBlock() == this ||
world.getBlockState(pos.add(1, -densityDir, 0)).getBlock() == this ||
world.getBlockState(pos.add(0, -densityDir, -1)).getBlock() == this ||
world.getBlockState(pos.add(0, -densityDir, 1)).getBlock() == this) {
if (world.getBlockState(pos.add(0, -densityDir, 0)).getBlock() == this) {
expQuanta = quantaPerBlock - 1;
} else {
int maxQuanta = -100;
Expand Down Expand Up @@ -561,4 +557,4 @@ public FluidStack drain(World world, BlockPos pos, boolean doDrain) {
}
return super.drain(world, pos, doDrain);
}
}
}