From f073a93d47e8f301556b3fdf65ca4cfd7bffa17c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 25 Jan 2025 14:23:18 -0600 Subject: [PATCH] PlayerCombatStats dex penalty applied correctly --- src/engine/db/handlers/dbItemBaseHandler.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbItemBaseHandler.java b/src/engine/db/handlers/dbItemBaseHandler.java index 6e953375..728aa1b4 100644 --- a/src/engine/db/handlers/dbItemBaseHandler.java +++ b/src/engine/db/handlers/dbItemBaseHandler.java @@ -52,8 +52,11 @@ public class dbItemBaseHandler extends dbHandlerBase { preparedStatement.setInt(1, itemBase.getUUID()); ResultSet rs = preparedStatement.executeQuery(); - - itemBase.dexReduction = rs.getFloat("item_bulk_factor"); + try { + itemBase.dexReduction = rs.getFloat("item_bulk_factor"); + }catch(Exception e){ + Logger.error("No Value Found For Dex Penalty FOr Item: " + itemBase.getUUID()); + } } catch (SQLException e) { Logger.error(e);