smol coolant logic cleanup
This commit is contained in:
parent
b25ddde5c8
commit
8da40906e6
|
@ -55,7 +55,6 @@ public class CoolantBaseBlock extends Block {
|
||||||
else if (this == Blocks.COOLANT_HEAT_SPREADER_BLOCK.block().get()) encounteredHeatSpreader = true;
|
else if (this == Blocks.COOLANT_HEAT_SPREADER_BLOCK.block().get()) encounteredHeatSpreader = true;
|
||||||
|
|
||||||
visitedBlocks.add(pos);
|
visitedBlocks.add(pos);
|
||||||
BlockPos lastPos = pos;
|
|
||||||
while (dirs.size() > 1) {
|
while (dirs.size() > 1) {
|
||||||
// Traverse the new block
|
// Traverse the new block
|
||||||
lastTransitionDirection = (Direction) dirs.keySet().toArray()[0];
|
lastTransitionDirection = (Direction) dirs.keySet().toArray()[0];
|
||||||
|
@ -79,13 +78,12 @@ public class CoolantBaseBlock extends Block {
|
||||||
// Tell the system to check for another
|
// Tell the system to check for another
|
||||||
encounteredHeatSpreader = false;
|
encounteredHeatSpreader = false;
|
||||||
// Set the metering flag true
|
// Set the metering flag true
|
||||||
encounteredMetering = true;
|
|
||||||
} else {
|
} else {
|
||||||
// We're searching prematurely!
|
// We're searching prematurely!
|
||||||
// We'll search for it at the compressor instead.
|
// We'll search for it at the compressor instead.
|
||||||
prematureMetering = true;
|
prematureMetering = true;
|
||||||
encounteredMetering = true;
|
|
||||||
}
|
}
|
||||||
|
encounteredMetering = true;
|
||||||
// The compressor has its own things to check..
|
// The compressor has its own things to check..
|
||||||
} else if (reachedBlock == Blocks.COMPRESSOR_BLOCK.block().get()) {
|
} else if (reachedBlock == Blocks.COMPRESSOR_BLOCK.block().get()) {
|
||||||
if (encounteredCompressor) {
|
if (encounteredCompressor) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user