From 093629c1f2d036a8e9b76d53b4cbd709690ceb0e Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Mon, 15 Jan 2018 23:43:46 -0500
Subject: [PATCH] Fix "unlimited" max chunk gens per tick setting

hopefully tried to set it to be unlimited in the first place....
---
 .../Configurable-Max-Chunk-Gens-per-Tick.patch       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Spigot-Server-Patches/Configurable-Max-Chunk-Gens-per-Tick.patch b/Spigot-Server-Patches/Configurable-Max-Chunk-Gens-per-Tick.patch
index 9644fa4edd..7c82a61e02 100644
--- a/Spigot-Server-Patches/Configurable-Max-Chunk-Gens-per-Tick.patch
+++ b/Spigot-Server-Patches/Configurable-Max-Chunk-Gens-per-Tick.patch
@@ -13,7 +13,7 @@ This should result in no noticeable speed reduction in generation for servers no
 lagging, and let larger servers reduce this value according to their own desires.
 
 diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
-index acf32d51..964bf2d2 100644
+index acf32d51d..19c4148c6 100644
 --- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
 +++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
 @@ -0,0 +0,0 @@ public class PaperWorldConfig {
@@ -25,7 +25,7 @@ index acf32d51..964bf2d2 100644
 +    private void maxChunkGensPerTick() {
 +        maxChunkGensPerTick = getInt("max-chunk-gens-per-tick", maxChunkGensPerTick);
 +        if (maxChunkGensPerTick <= 0) {
-+            maxChunkSendsPerTick = Integer.MAX_VALUE;
++            maxChunkGensPerTick = Integer.MAX_VALUE;
 +            log("Max Chunk Gens Per Tick: Unlimited (NOT RECOMMENDED)");
 +        } else {
 +            log("Max Chunk Gens Per Tick: " + maxChunkGensPerTick);
@@ -34,7 +34,7 @@ index acf32d51..964bf2d2 100644
 +
  }
 diff --git a/src/main/java/net/minecraft/server/PlayerChunk.java b/src/main/java/net/minecraft/server/PlayerChunk.java
-index 045adbd3..20e734bc 100644
+index 045adbd3d..20e734bc8 100644
 --- a/src/main/java/net/minecraft/server/PlayerChunk.java
 +++ b/src/main/java/net/minecraft/server/PlayerChunk.java
 @@ -0,0 +0,0 @@ public class PlayerChunk {
@@ -54,7 +54,7 @@ index 045adbd3..20e734bc 100644
          // CraftBukkit end
      }
 diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java
-index 6ee9f6cf..99652ae3 100644
+index 6ee9f6cfb..99652ae3e 100644
 --- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
 +++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
 @@ -0,0 +0,0 @@ public class PlayerChunkMap {
@@ -78,7 +78,7 @@ index 6ee9f6cf..99652ae3 100644
                      if (playerchunk1.a(flag)) {
                          iterator1.remove();
 diff --git a/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java b/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java
-index 9aaca21a..f50d55c8 100644
+index 9aaca21a7..f50d55c8e 100644
 --- a/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java
 +++ b/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java
 @@ -0,0 +0,0 @@ public class ChunkIOExecutor {
@@ -93,7 +93,7 @@ index 9aaca21a..f50d55c8 100644
 +    // Paper end
  }
 diff --git a/src/main/java/org/bukkit/craftbukkit/util/AsynchronousExecutor.java b/src/main/java/org/bukkit/craftbukkit/util/AsynchronousExecutor.java
-index 193c3621..cf1258c5 100644
+index 193c3621c..cf1258c55 100644
 --- a/src/main/java/org/bukkit/craftbukkit/util/AsynchronousExecutor.java
 +++ b/src/main/java/org/bukkit/craftbukkit/util/AsynchronousExecutor.java
 @@ -0,0 +0,0 @@ public final class AsynchronousExecutor<P, T, C, E extends Throwable> {