From 8b4d37c53c39aa30ada531e0def95436116a6194 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 11 Jun 2024 20:08:29 -0500 Subject: [PATCH] fix for mines loading --- src/engine/db/handlers/dbHandlerBase.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/db/handlers/dbHandlerBase.java b/src/engine/db/handlers/dbHandlerBase.java index 67ec76a7..d9eb1d82 100644 --- a/src/engine/db/handlers/dbHandlerBase.java +++ b/src/engine/db/handlers/dbHandlerBase.java @@ -60,9 +60,11 @@ public abstract class dbHandlerBase { if (DbManager.inCache(localObjectType, id)) { objectList.add((T) DbManager.getFromCache(localObjectType, id)); } else { - int mineLiveHour = rs.getInt("mineLiveHour"); - if (!rs.wasNull() && mineLiveHour == 1) { - continue; + try{ + if(rs.getInt("mineLiveHour") == 1) + continue; + }catch(Exception e){ + //not a mine } AbstractGameObject toAdd = localClass.getConstructor(ResultSet.class).newInstance(rs); DbManager.addToCache(toAdd);