Fixes #26: Annihilation plane can cause NPE.
This commit is contained in:
parent
c067f5905d
commit
5da42ca598
|
@ -242,7 +242,7 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
|
||||||
boolean capture = false;
|
boolean capture = false;
|
||||||
|
|
||||||
// This is the middle point of the entities BB, which is better suited for comparisons that don't rely on it "touching" the plane
|
// This is the middle point of the entities BB, which is better suited for comparisons that don't rely on it "touching" the plane
|
||||||
double posYMiddle = (entity.getBoundingBox().minY + entity.getBoundingBox().maxY) / 2.0D;
|
double posYMiddle = (entity.boundingBox.minY + entity.boundingBox.maxY) / 2.0D;
|
||||||
|
|
||||||
switch( this.getSide() )
|
switch( this.getSide() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue