Browse Source

Strip trailing ; when writing enumset

combat-2
MagicBot 8 months ago
parent
commit
0f703785f3
  1. 2
      src/engine/db/handlers/dbItemHandler.java

2
src/engine/db/handlers/dbItemHandler.java

@ -101,6 +101,8 @@ public class dbItemHandler extends dbHandlerBase { @@ -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);

Loading…
Cancel
Save