Skip to content

Commit a3960ed

Browse files
committed
Fixed fission reactor inner blocks iteration
1 parent 34fe5d8 commit a3960ed

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/java/igentuman/nc/multiblock/AbstractMultiblock.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,16 +351,19 @@ public void resolveDimensions()
351351
public void validateOuter() {
352352
outerValid = false;
353353
resolveDimensions();
354-
if (width < minWidth() || height < minHeight() || depth < minDepth())
354+
355+
if (width > maxWidth() || height > maxHeight() || depth > maxDepth())
355356
{
356-
validationResult = ValidationResult.TOO_SMALL;
357+
validationResult = ValidationResult.TOO_BIG;
357358
return;
358359
}
359-
if (width > maxWidth() || height > maxHeight() || depth > maxDepth())
360+
361+
if (width < minWidth() || height < minHeight() || depth < minDepth())
360362
{
361-
validationResult = ValidationResult.TOO_BIG;
363+
validationResult = ValidationResult.TOO_SMALL;
362364
return;
363365
}
366+
364367
BlockPos leftFront = new BlockPosInstance(getLeftPos(leftCasing));
365368
BlockPos leftBack = new BlockPosInstance(getLeftPos(leftCasing).relative(getControllerDirection(), -depth+1));
366369
BlockPos rightFront = new BlockPosInstance(getRightPos(rightCasing));

0 commit comments

Comments
 (0)