From 3ef3a0c37cb19815d1d2ba62bae88d32eecd4339 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 14 Feb 2024 13:48:34 -0600 Subject: [PATCH] boxshroud fixes --- src/engine/db/handlers/dbItemHandler.java | 6 +++++- src/engine/objects/PlayerCharacter.java | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index d0821606..2fc9b64e 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -354,7 +354,11 @@ public class dbItemHandler extends dbHandlerBase { ResultSet rs = preparedStatement.executeQuery(); if (rs.next()) - worked = rs.getBoolean("result"); + try { + worked = rs.getBoolean("result"); + } catch(Exception e){ + worked = true; + } } catch (SQLException e) { Logger.error(e); diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 4a69143d..0b9bb680 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4829,6 +4829,7 @@ public class PlayerCharacter extends AbstractCharacter { if (pc.isBoxed == true) continue; this.isBoxed = true; + break; } } }