Batching task count reset (#3144)

* Negate mob-place flag debug message

* fixed a little typo :)

* Added check for dragon egg teleportation event
https://github.com/IntellectualSites/PlotSquared/issues/3074

* Basic dragon egg interact bugfix (Left-click interaction)

* Lifted admin if-condition out of roads (out-of-plot) only block (for animals)

* See 4514d39bbd

Co-authored-by: NotMyFault <mc.cache@web.de>
This commit is contained in:
Patrick "IPat" Hein 2021-07-07 10:10:51 +02:00 committed by GitHub
parent fdb6367351
commit 991703914c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -394,7 +394,7 @@ public class SQLManager implements AbstractDB {
} }
int count = -1; int count = -1;
if (!this.plotTasks.isEmpty()) { if (!this.plotTasks.isEmpty()) {
count = 0; count = Math.max(count, 0);
if (this.connection.getAutoCommit()) { if (this.connection.getAutoCommit()) {
this.connection.setAutoCommit(false); this.connection.setAutoCommit(false);
} }
@ -450,7 +450,7 @@ public class SQLManager implements AbstractDB {
} }
} }
if (!this.playerTasks.isEmpty()) { if (!this.playerTasks.isEmpty()) {
count = 0; count = Math.max(count, 0);
if (this.connection.getAutoCommit()) { if (this.connection.getAutoCommit()) {
this.connection.setAutoCommit(false); this.connection.setAutoCommit(false);
} }
@ -495,7 +495,7 @@ public class SQLManager implements AbstractDB {
} }
} }
if (!this.clusterTasks.isEmpty()) { if (!this.clusterTasks.isEmpty()) {
count = 0; count = Math.max(count, 0);
if (this.connection.getAutoCommit()) { if (this.connection.getAutoCommit()) {
this.connection.setAutoCommit(false); this.connection.setAutoCommit(false);
} }