diff --git a/v1_12_R1/src/main/java/com/bgsoftware/wildloaders/nms/v1_12_R1/ChunkLoaderNPC.java b/v1_12_R1/src/main/java/com/bgsoftware/wildloaders/nms/v1_12_R1/ChunkLoaderNPC.java index 53d528c..2077305 100644 --- a/v1_12_R1/src/main/java/com/bgsoftware/wildloaders/nms/v1_12_R1/ChunkLoaderNPC.java +++ b/v1_12_R1/src/main/java/com/bgsoftware/wildloaders/nms/v1_12_R1/ChunkLoaderNPC.java @@ -71,7 +71,9 @@ public final class ChunkLoaderNPC extends EntityPlayer implements com.bgsoftware @Override public AxisAlignedBB getBoundingBox() { - return this.boundingBox; + // boundingBox is null on initialization of the class, which fixes: + // https://github.com/BG-Software-LLC/WildLoaders/issues/61 + return this.boundingBox == null ? super.getBoundingBox() : this.boundingBox; } @Override diff --git a/v1_8_R3/src/main/java/com/bgsoftware/wildloaders/nms/v1_8_R3/ChunkLoaderNPC.java b/v1_8_R3/src/main/java/com/bgsoftware/wildloaders/nms/v1_8_R3/ChunkLoaderNPC.java index ca0a968..cedd60a 100644 --- a/v1_8_R3/src/main/java/com/bgsoftware/wildloaders/nms/v1_8_R3/ChunkLoaderNPC.java +++ b/v1_8_R3/src/main/java/com/bgsoftware/wildloaders/nms/v1_8_R3/ChunkLoaderNPC.java @@ -74,7 +74,9 @@ public final class ChunkLoaderNPC extends EntityPlayer implements com.bgsoftware @Override public AxisAlignedBB getBoundingBox() { - return this.boundingBox; + // boundingBox is null on initialization of the class, which fixes: + // https://github.com/BG-Software-LLC/WildLoaders/issues/61 + return this.boundingBox == null ? super.getBoundingBox() : this.boundingBox; } @Override