Skip to content

Commit e6d9014

Browse files
committed
fix sql issue
1 parent 781f89c commit e6d9014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/maxgamer/quickshop/database/SimpleDatabaseHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public void updateExternalInventoryProfileCache(@NotNull Shop shop, int space, i
378378
@Override
379379
public void updateShop(@NotNull String owner, @NotNull ItemStack item, int unlimited, int shopType,
380380
double price, int x, int y, int z, @NotNull String world, @NotNull String extra,
381-
@NotNull String currency, boolean disableDisplay, @Nullable String taxAccount) {
381+
@Nullable String currency, boolean disableDisplay, @Nullable String taxAccount) {
382382
String sqlString = "UPDATE " + plugin
383383
.getDbPrefix() + "shops SET owner = ?, itemConfig = ?, unlimited = ?, type = ?, price = ?," +
384384
" extra = ?, currency = ?, disableDisplay = ?, taxAccount = ?" +
@@ -391,7 +391,7 @@ public void updateShop(@NotNull String owner, @NotNull ItemStack item, int unlim
391391
ps.setDouble(5, price);
392392
ps.setString(6, extra);
393393
ps.setString(7, currency);
394-
ps.setInt(8, ((!disableDisplay) ? 0 : 1));
394+
ps.setInt(8, disableDisplay ? 1 : 0);
395395
ps.setString(9, taxAccount);
396396
ps.setInt(10, x);
397397
ps.setInt(11, y);

0 commit comments

Comments
 (0)