This commit is contained in:
Modmuss50 2015-12-16 15:56:12 +00:00
parent 5324016199
commit 96a7b56b5f
4 changed files with 50 additions and 15 deletions

View file

@ -15,12 +15,24 @@ public class MultiBlockCasing extends RectangularMultiblockControllerBase {
public boolean hasLava;
public boolean isStar = false;
public int height = 0;
public MultiBlockCasing(World world) {
super(world);
}
public String getInfo(){
String value = "Intact";
try {
isMachineWhole();
} catch (MultiblockValidationException e) {
e.printStackTrace();
value = e.getLocalizedMessage();
}
return value;
}
/**
* @return True if the machine is "whole" and should be assembled. False
* otherwise.
@ -82,7 +94,7 @@ public class MultiBlockCasing extends RectangularMultiblockControllerBase {
"Machine is too small, it must be at least %d blocks in the Z dimension",
minZ));
}
height = deltaY;
// if(checkIfStarShape(minimumCoord.x, minimumCoord.y, minimumCoord.z)){
// isStar = true;
@ -91,7 +103,7 @@ public class MultiBlockCasing extends RectangularMultiblockControllerBase {
// isStar = false;
// }
if (deltaY < 4) {
if (deltaY < minY) {
throw new MultiblockValidationException(
String.format(
"Machine is too small, it must be at least %d blocks in the Y dimension",