diff --git a/src/main/java/com/irtimaled/bbor/client/ClientProxy.java b/src/main/java/com/irtimaled/bbor/client/ClientProxy.java index 8e2ba5b2..6ad3de95 100644 --- a/src/main/java/com/irtimaled/bbor/client/ClientProxy.java +++ b/src/main/java/com/irtimaled/bbor/client/ClientProxy.java @@ -73,7 +73,7 @@ private void disconnectedFromServer() { } private void addBoundingBox(AddBoundingBoxReceived event) { - BoundingBoxCache cache = getCache(event.getDimensionId()); + BoundingBoxCache cache = getOrCreateCache(event.getDimensionId()); if (cache == null) return; cache.addBoundingBoxes(event.getKey(), event.getBoundingBoxes());