2018-07-15 02:00:00 +02:00
|
|
|
--- a/net/minecraft/server/TickListServer.java
|
|
|
|
+++ b/net/minecraft/server/TickListServer.java
|
2019-05-14 02:00:00 +02:00
|
|
|
@@ -37,11 +37,17 @@
|
|
|
|
this.b();
|
2018-07-15 02:00:00 +02:00
|
|
|
int i = this.nextTickList.size();
|
|
|
|
|
|
|
|
- if (i != this.nextTickListHash.size()) {
|
|
|
|
+ if (false) { // CraftBukkit
|
|
|
|
throw new IllegalStateException("TickNextTick list out of synch");
|
|
|
|
} else {
|
|
|
|
if (i > 65536) {
|
|
|
|
- i = 65536;
|
|
|
|
+ // CraftBukkit start - If the server has too much to process over time, try to alleviate that
|
|
|
|
+ if (i > 20 * 65536) {
|
|
|
|
+ i = i / 20;
|
|
|
|
+ } else {
|
|
|
|
+ i = 65536;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
2019-05-14 02:00:00 +02:00
|
|
|
this.h.getMethodProfiler().enter("selecting");
|