Fixes #26: Annihilation plane can cause NPE.

This commit is contained in:
xsun2001 2019-06-23 14:21:46 +08:00
parent c067f5905d
commit 5da42ca598
No known key found for this signature in database
GPG Key ID: 2A025270E8D5BCD4
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
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
double posYMiddle = (entity.getBoundingBox().minY + entity.getBoundingBox().maxY) / 2.0D;
double posYMiddle = (entity.boundingBox.minY + entity.boundingBox.maxY) / 2.0D;
switch( this.getSide() )
{