]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/commitdiff
Fixes #24
authorirtimaled <irtimaled@gmail.com>
Tue, 10 Jan 2017 23:23:49 +0000 (23:23 +0000)
committerirtimaled <irtimaled@gmail.com>
Tue, 10 Jan 2017 23:34:50 +0000 (23:34 +0000)
Sometimes there won't be bounding boxes because it's an non-vanilla dimension

java/com/irtimaled/bbor/forge/ForgeCommonProxy.java

index 2d43d874ab528431416adf261b1848551befa648..334d322a305976a2ab3fba7c09d795cab35e1eb0 100644 (file)
@@ -111,6 +111,8 @@ public class ForgeCommonProxy implements IEventHandler {
     }
 
     private void sendToPlayer(EntityPlayerMP player, BoundingBoxCache boundingBoxCache) {
+        if(boundingBoxCache == null)
+            return;
         Map<BoundingBox, Set<BoundingBox>> cacheSubset = getBoundingBoxMap(player, boundingBoxCache.getBoundingBoxes());
 
         DimensionType dimensionType = DimensionType.getById(player.dimension);