diff --git a/Core/src/main/java/com/plotsquared/core/database/SQLManager.java b/Core/src/main/java/com/plotsquared/core/database/SQLManager.java index dcf427055..03545cfc9 100644 --- a/Core/src/main/java/com/plotsquared/core/database/SQLManager.java +++ b/Core/src/main/java/com/plotsquared/core/database/SQLManager.java @@ -394,7 +394,7 @@ public class SQLManager implements AbstractDB { } int count = -1; if (!this.plotTasks.isEmpty()) { - count = 0; + count = Math.max(count, 0); if (this.connection.getAutoCommit()) { this.connection.setAutoCommit(false); } @@ -450,7 +450,7 @@ public class SQLManager implements AbstractDB { } } if (!this.playerTasks.isEmpty()) { - count = 0; + count = Math.max(count, 0); if (this.connection.getAutoCommit()) { this.connection.setAutoCommit(false); } @@ -495,7 +495,7 @@ public class SQLManager implements AbstractDB { } } if (!this.clusterTasks.isEmpty()) { - count = 0; + count = Math.max(count, 0); if (this.connection.getAutoCommit()) { this.connection.setAutoCommit(false); }