From 0f703785f3f1126cee27278b1747c23a4ca03696 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 25 Mar 2024 04:50:58 -0400 Subject: [PATCH] Strip trailing ; when writing enumset --- src/engine/db/handlers/dbItemHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index df14509b..44749b5d 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -101,6 +101,8 @@ public class dbItemHandler extends dbHandlerBase { for (Enum.ItemFlags itemflag : toAdd.flags) flagString += itemflag.toString() + ";"; + flagString = flagString.replaceAll(";$", ""); + preparedStatement.setString(9, flagString); preparedStatement.setString(10, toAdd.name);