Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Fix H2 database when saving NPC books.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoNekoDev committed Sep 10, 2023
1 parent 374a3b8 commit 4319bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ protected void putNPCBookStack(int npcId, Side side, ItemStack book) {
String encoded = super.plugin.getAPI().encodeItemStack(book);
statement.setInt(1, npcId);
statement.setString(2, side.toString());
statement.setString(3, encoded);
statement.setString(4, encoded);
statement.setString(5, encoded);
statement.executeUpdate();
} catch (SQLException ex) {
super.plugin.getLogger().log(Level.WARNING, "(" + super.storageType.getFormattedName() + ") Failed to save book data!", ex);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<packaging>pom</packaging>

<properties>
<revision>3.0.5</revision>
<revision>3.0.6</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>17</java.version>
Expand Down

0 comments on commit 4319bce

Please sign in to comment.