Merge pull request #655 from kouteiheika/master
Bulletproof the Box class against accidental world corruption and bugs. -Don't really understand, but merged anyway.
This commit is contained in:
commit
97ce3ff98a
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ public class Box implements IBox {
|
|||
this.xMax = xMax;
|
||||
this.yMax = yMax;
|
||||
this.zMax = zMax;
|
||||
initialized = true;
|
||||
initialized = !(xMin == Integer.MAX_VALUE || yMin == Integer.MAX_VALUE || zMin == Integer.MAX_VALUE || xMax == Integer.MAX_VALUE ||
|
||||
yMax == Integer.MAX_VALUE || zMax == Integer.MAX_VALUE );
|
||||
}
|
||||
|
||||
public void initialize(Box box) {
|
||||
|
|
Loading…
Reference in a new issue