From 28836a7a4f63bb50073ebdbd1d463233abec42ae Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 8 Jan 2026 12:38:42 -0600 Subject: [PATCH] log null blueprint in destroy city thread --- src/engine/workthreads/DestroyCityThread.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/workthreads/DestroyCityThread.java b/src/engine/workthreads/DestroyCityThread.java index 9c5b2050..0a9dd5f7 100644 --- a/src/engine/workthreads/DestroyCityThread.java +++ b/src/engine/workthreads/DestroyCityThread.java @@ -95,6 +95,12 @@ public class DestroyCityThread implements Runnable { if (cityBuilding == null) continue; + // check null bluepritn and log error + if (cityBuilding.getBlueprint() == null){ + Logger.error("Null Blueprint for building ID: " + cityBuilding.getObjectUUID()); + continue; + } + // Do nothing with the banestone. It will be removed elsewhere if (cityBuilding.getBlueprint().getBuildingGroup().equals(mbEnums.BuildingGroup.BANESTONE))