From 86e6d961f0f9d84cf2b4d509d1f178a9aea8fc82 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 5 Apr 2019 05:17:10 -0400 Subject: [PATCH] Update upstream CB --- work/CraftBukkit Submodule work/CraftBukkit 0e1cea5a..f40143ef: > SPIGOT-4691: Fix custom world generator when placing tiles --- Spigot-Server-Patches/0336-Anti-Xray.patch | 10 +++++----- .../0354-Optimize-and-Fix-ExpiringMap-Issues.patch | 8 ++++---- work/CraftBukkit | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Spigot-Server-Patches/0336-Anti-Xray.patch b/Spigot-Server-Patches/0336-Anti-Xray.patch index fd7d6ece99..261cfabada 100644 --- a/Spigot-Server-Patches/0336-Anti-Xray.patch +++ b/Spigot-Server-Patches/0336-Anti-Xray.patch @@ -1,4 +1,4 @@ -From b97faa806b0369e82235daa8f3360c404c973e1b Mon Sep 17 00:00:00 2001 +From 5d077d44d4bbe2d4436cafe783621f53061000c8 Mon Sep 17 00:00:00 2001 From: stonar96 Date: Mon, 20 Aug 2018 03:03:58 +0200 Subject: [PATCH] Anti-Xray @@ -1571,13 +1571,13 @@ index c25c82bf1..1bd2167aa 100644 if (iblockdata1 == null) { // CraftBukkit start - remove blockstate if failed diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java -index 550416bef..923d1b282 100644 +index 791017258..29695da2e 100644 --- a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java +++ b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java -@@ -17,9 +17,11 @@ import org.bukkit.material.MaterialData; - public final class CraftChunkData implements ChunkGenerator.ChunkData { +@@ -21,9 +21,11 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData { private final int maxHeight; private final ChunkSection[] sections; + private Set tiles; + private World world; // Paper - Anti-Xray public CraftChunkData(World world) { @@ -1586,7 +1586,7 @@ index 550416bef..923d1b282 100644 } /* pp for tests */ CraftChunkData(int maxHeight) { -@@ -145,7 +147,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData { +@@ -157,7 +159,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData { private ChunkSection getChunkSection(int y, boolean create) { ChunkSection section = sections[y >> 4]; if (create && section == null) { diff --git a/Spigot-Server-Patches/0354-Optimize-and-Fix-ExpiringMap-Issues.patch b/Spigot-Server-Patches/0354-Optimize-and-Fix-ExpiringMap-Issues.patch index ff5193eaad..31564baad9 100644 --- a/Spigot-Server-Patches/0354-Optimize-and-Fix-ExpiringMap-Issues.patch +++ b/Spigot-Server-Patches/0354-Optimize-and-Fix-ExpiringMap-Issues.patch @@ -1,4 +1,4 @@ -From 370fdd742cc646eda4300fc51556ad3a03aacfb1 Mon Sep 17 00:00:00 2001 +From 3f0a5b795917411e3c303f2ec75e620d37f6f1d5 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 16 Sep 2018 00:00:16 -0400 Subject: [PATCH] Optimize and Fix ExpiringMap Issues @@ -310,10 +310,10 @@ index 38c0201ac..ae271a57f 100644 co.aikar.timings.TimingsManager.FULL_SERVER_TICK.stopTiming(); // Paper } diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java b/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java -index 4cca65666..9c917370a 100644 +index 23f4e24ce..9e553866e 100644 --- a/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java +++ b/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java -@@ -144,7 +144,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator getStructureStartCache(StructureGenerator structuregenerator) { return (Long2ObjectMap) this.structureStartCache.computeIfAbsent(structuregenerator, (s) -> { @@ -322,7 +322,7 @@ index 4cca65666..9c917370a 100644 }); } -@@ -154,7 +154,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator getStructureCache(StructureGenerator structuregenerator) { return (Long2ObjectMap) this.structureCache.computeIfAbsent(structuregenerator, (s) -> { diff --git a/work/CraftBukkit b/work/CraftBukkit index 0e1cea5a4a..f40143ef5e 160000 --- a/work/CraftBukkit +++ b/work/CraftBukkit @@ -1 +1 @@ -Subproject commit 0e1cea5a4a4b41004912ab7a8b2871349b1ef4a0 +Subproject commit f40143ef5e2215b15c08eac481517bd6a0cf7239