File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/main/java/igentuman/nc/multiblock Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments