mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-25 12:25:18 +01:00
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
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user