Fixed a NPE when placing chunk loaders in 1.8/1.12 (#61)
This commit is contained in:
parent
db2b49fbde
commit
a891a18ee9
|
@ -71,7 +71,9 @@ public final class ChunkLoaderNPC extends EntityPlayer implements com.bgsoftware
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AxisAlignedBB getBoundingBox() {
|
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
|
@Override
|
||||||
|
|
|
@ -74,7 +74,9 @@ public final class ChunkLoaderNPC extends EntityPlayer implements com.bgsoftware
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AxisAlignedBB getBoundingBox() {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue