mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
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:
parent
fdb6367351
commit
991703914c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user