From 7c498625bd122cb78473f56a49517b9f0d54e544 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 3 Jan 2025 21:09:53 -0600 Subject: [PATCH] bounds error --- src/engine/math/Bounds.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/math/Bounds.java b/src/engine/math/Bounds.java index 04998e1c..47bf9f07 100644 --- a/src/engine/math/Bounds.java +++ b/src/engine/math/Bounds.java @@ -220,7 +220,7 @@ public class Bounds { //player is inside building region, skip collision check. we only do collision from the outside. if (player.region != null && player.region.parentBuildingID == building.getObjectUUID()) continue; - if (building.getBounds().colliders == null) + if (building.getBounds() == null || building.getBounds().colliders == null) continue; for (Colliders collider : building.getBounds().colliders) {