smol coolant logic cleanup

This commit is contained in:
Curle 2023-06-30 06:07:06 +01:00
parent b25ddde5c8
commit 8da40906e6

View File

@ -55,7 +55,6 @@ public class CoolantBaseBlock extends Block {
else if (this == Blocks.COOLANT_HEAT_SPREADER_BLOCK.block().get()) encounteredHeatSpreader = true;
visitedBlocks.add(pos);
BlockPos lastPos = pos;
while (dirs.size() > 1) {
// Traverse the new block
lastTransitionDirection = (Direction) dirs.keySet().toArray()[0];
@ -79,13 +78,12 @@ public class CoolantBaseBlock extends Block {
// Tell the system to check for another
encounteredHeatSpreader = false;
// Set the metering flag true
encounteredMetering = true;
} else {
// We're searching prematurely!
// We'll search for it at the compressor instead.
prematureMetering = true;
encounteredMetering = true;
}
encounteredMetering = true;
// The compressor has its own things to check..
} else if (reachedBlock == Blocks.COMPRESSOR_BLOCK.block().get()) {
if (encounteredCompressor) {