Jesse Boyd 2018-05-17 18:35:56 +10:00
parent d541115a3b
commit d66c14b06d
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
6 changed files with 11 additions and 0 deletions

View File

@ -232,6 +232,7 @@ public class BukkitQueue_1_10 extends BukkitQueue_0<net.minecraft.server.v1_10_R
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator);
keepLoaded.remove(MathMan.pairInt(x, z));
result = getWorld().regenerateChunk(x, z); result = getWorld().regenerateChunk(x, z);
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator);

View File

@ -230,6 +230,7 @@ public class BukkitQueue_1_11 extends BukkitQueue_0<net.minecraft.server.v1_11_R
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator);
keepLoaded.remove(MathMan.pairInt(x, z));
result = getWorld().regenerateChunk(x, z); result = getWorld().regenerateChunk(x, z);
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator);

View File

@ -240,7 +240,13 @@ public class BukkitQueue_1_12 extends BukkitQueue_0<net.minecraft.server.v1_12_R
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator);
keepLoaded.remove(MathMan.pairInt(x, z));
result = getWorld().regenerateChunk(x, z); result = getWorld().regenerateChunk(x, z);
net.minecraft.server.v1_12_R1.Chunk nmsChunk = getCachedChunk(world, x, z);
if (nmsChunk != null) {
nmsChunk.f(true); // Set Modified
nmsChunk.mustSave = true;
}
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator);

View File

@ -271,6 +271,7 @@ public class BukkitQueue17 extends BukkitQueue_0<net.minecraft.server.v1_7_R4.Ch
nmsWorld.chunkProviderServer.chunkProvider = generator; nmsWorld.chunkProviderServer.chunkProvider = generator;
keepLoaded.remove(MathMan.pairInt(x, z));
result = getWorld().regenerateChunk(x, z); result = getWorld().regenerateChunk(x, z);
nmsWorld.chunkProviderServer.chunkProvider = existingGenerator; nmsWorld.chunkProviderServer.chunkProvider = existingGenerator;

View File

@ -271,6 +271,7 @@ public class BukkitQueue18R3 extends BukkitQueue_0<net.minecraft.server.v1_8_R3.
nmsWorld.chunkProviderServer.chunkProvider = generator; nmsWorld.chunkProviderServer.chunkProvider = generator;
keepLoaded.remove(MathMan.pairInt(x, z));
result = getWorld().regenerateChunk(x, z); result = getWorld().regenerateChunk(x, z);
nmsWorld.chunkProviderServer.chunkProvider = existingGenerator; nmsWorld.chunkProviderServer.chunkProvider = existingGenerator;

View File

@ -177,6 +177,7 @@ public class BukkitQueue_1_9_R1 extends BukkitQueue_0<net.minecraft.server.v1_9_
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), generator);
keepLoaded.remove(MathMan.pairInt(x, z));
result = getWorld().regenerateChunk(x, z); result = getWorld().regenerateChunk(x, z);
ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator); ReflectionUtils.setFailsafeFieldValue(fieldChunkGenerator, this.nmsWorld.getChunkProviderServer(), existingGenerator);