From 04ca580aa69404fec8310a0418c679b03470755f Mon Sep 17 00:00:00 2001
From: Josh Roy <10731363+JRoy@users.noreply.github.com>
Date: Fri, 26 Nov 2021 17:58:39 -0500
Subject: [PATCH] Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
716b4fce Revert SnakeYAML upgrade
ca6f8942 Update to Minecraft 1.18-rc3
57e7e952 #683: Add Player#showDemoScreen
CraftBukkit Changes:
c98abfb0 Update to Minecraft 1.18-rc3
9b258501 #960: Add Player#showDemoScreen
d9542247 Produce remapped jars after bootstrap jar
99f3ddde SPIGOT-6808: Fix RegionAccessor#getBiome
Spigot Changes:
b7a4222e Update to Minecraft 1.18-rc3
---
build.gradle.kts | 2 +-
gradle.properties | 4 ++--
patches/api/Convert-project-to-Gradle.patch | 2 +-
patches/server/Duplicate-UUID-Resolve-Option.patch | 4 ++--
...Implement-Chunk-Priority-Urgency-System-for-Chunks.patch | 4 ++--
patches/server/Improved-Watchdog-Support.patch | 2 +-
patches/server/MC-Utils.patch | 4 ++--
patches/server/Remove-some-streams-from-structures.patch | 6 +++---
patches/server/Setup-Gradle-project.patch | 6 +++---
work/BuildData | 2 +-
work/Bukkit | 2 +-
work/CraftBukkit | 2 +-
work/Spigot | 2 +-
13 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/build.gradle.kts b/build.gradle.kts
index 4885c0be6..2e36928c9 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -46,7 +46,7 @@ repositories {
}
dependencies {
- paramMappings("net.fabricmc:yarn:1.18-pre8+build.4:mergedv2")
+ paramMappings("net.fabricmc:yarn:1.18-rc3+build.1:mergedv2")
remapper("net.fabricmc:tiny-remapper:0.7.0:fat")
decompiler("net.minecraftforge:forgeflower:1.5.498.22")
paperclip("io.papermc:paperclip:3.0.0-SNAPSHOT")
diff --git a/gradle.properties b/gradle.properties
index 07543018c..756f59c21 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,7 +1,7 @@
group=io.papermc.paper
-version=1.18-pre8-R0.1-SNAPSHOT
+version=1.18-rc3-R0.1-SNAPSHOT
-mcVersion=1.18-pre8
+mcVersion=1.18-rc3
org.gradle.caching=true
org.gradle.parallel=true
diff --git a/patches/api/Convert-project-to-Gradle.patch b/patches/api/Convert-project-to-Gradle.patch
index 216d91716..e24e81096 100644
--- a/patches/api/Convert-project-to-Gradle.patch
+++ b/patches/api/Convert-project-to-Gradle.patch
@@ -109,7 +109,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
-
- org.spigotmc
- spigot-api
-- 1.18-pre8-R0.1-SNAPSHOT
+- 1.18-rc3-R0.1-SNAPSHOT
- jar
-
- Spigot-API
diff --git a/patches/server/Duplicate-UUID-Resolve-Option.patch b/patches/server/Duplicate-UUID-Resolve-Option.patch
index f469223aa..8fa578974 100644
--- a/patches/server/Duplicate-UUID-Resolve-Option.patch
+++ b/patches/server/Duplicate-UUID-Resolve-Option.patch
@@ -94,9 +94,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableList.Builder;
import com.google.common.collect.Iterables;
-@@ -0,0 +0,0 @@ import java.io.IOException;
- import java.io.Writer;
+@@ -0,0 +0,0 @@ import java.io.Writer;
import java.nio.file.Path;
+ import java.util.ArrayList;
import java.util.BitSet;
+import java.util.HashMap; // Paper
+import java.util.Collection;
diff --git a/patches/server/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch b/patches/server/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch
index e4ccb6d6f..683df8ad2 100644
--- a/patches/server/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch
+++ b/patches/server/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch
@@ -426,7 +426,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public void updatePlayerMobTypeMap(Entity entity) {
if (!this.level.paperConfig.perPlayerMobSpawns) {
@@ -0,0 +0,0 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider
- List>> list = Lists.newArrayList();
+ List list1 = new ArrayList();
int j = centerChunk.x;
int k = centerChunk.z;
+ ChunkHolder requestingNeighbor = getUpdatingChunkIfPresent(centerChunk.toLong()); // Paper
@@ -446,8 +446,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+ // Paper end
+ list1.add(playerchunk);
list.add(completablefuture);
- }
@@ -0,0 +0,0 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider
if (requiredStatus == ChunkStatus.EMPTY) {
return this.scheduleChunkLoad(chunkcoordintpair);
diff --git a/patches/server/Improved-Watchdog-Support.patch b/patches/server/Improved-Watchdog-Support.patch
index 31b9501a7..ac4439733 100644
--- a/patches/server/Improved-Watchdog-Support.patch
+++ b/patches/server/Improved-Watchdog-Support.patch
@@ -296,8 +296,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
} catch (Exception var3) {
+ if (var3.getCause() instanceof ThreadDeath) throw var3; // Paper
LOGGER.fatal("Error executing task on {}", this.name(), var3);
- throw var3;
}
+
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/net/minecraft/world/level/Level.java
diff --git a/patches/server/MC-Utils.patch b/patches/server/MC-Utils.patch
index b9823521f..e7e3c0af3 100644
--- a/patches/server/MC-Utils.patch
+++ b/patches/server/MC-Utils.patch
@@ -5398,8 +5398,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper end
+
private CompletableFuture, ChunkHolder.ChunkLoadingFailure>> getChunkRangeFuture(ChunkPos centerChunk, int margin, IntFunction distanceToStatus) {
- List>> list = Lists.newArrayList();
- int j = centerChunk.x;
+ List>> list = new ArrayList();
+ List list1 = new ArrayList();
@@ -0,0 +0,0 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider
holder.setTicketLevel(level);
} else {
diff --git a/patches/server/Remove-some-streams-from-structures.patch b/patches/server/Remove-some-streams-from-structures.patch
index 7ec0c8d1c..e4c305d73 100644
--- a/patches/server/Remove-some-streams-from-structures.patch
+++ b/patches/server/Remove-some-streams-from-structures.patch
@@ -21,9 +21,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
this.rigids = new ObjectArrayList<>(10);
for(StructureFeature> structureFeature : StructureFeature.NOISE_AFFECTING_FEATURES) {
-- structureAccessor.startsForFeature(SectionPos.bottomOf(chunk), structureFeature).forEach((structureStart) -> {
-+ for (StructureStart> structureStart : structureAccessor.startsForFeature(SectionPos.bottomOf(chunk), structureFeature)) { // Paper - remove streams
- for(StructurePiece structurePiece : structureStart.getPieces()) {
+- structureAccessor.startsForFeature(SectionPos.bottomOf(chunk), structureFeature).forEach((start) -> {
++ for (StructureStart> start : structureAccessor.startsForFeature(SectionPos.bottomOf(chunk), structureFeature)) { // Paper - remove streams
+ for(StructurePiece structurePiece : start.getPieces()) {
if (structurePiece.isCloseToChunk(chunkPos, 12)) {
if (structurePiece instanceof PoolElementStructurePiece) {
@@ -0,0 +0,0 @@ public class Beardifier implements NoiseChunk.NoiseFiller {
diff --git a/patches/server/Setup-Gradle-project.patch b/patches/server/Setup-Gradle-project.patch
index 84e45d446..51a8602fb 100644
--- a/patches/server/Setup-Gradle-project.patch
+++ b/patches/server/Setup-Gradle-project.patch
@@ -192,7 +192,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- org.spigotmc
- spigot
- jar
-- 1.18-pre8-R0.1-SNAPSHOT
+- 1.18-rc3-R0.1-SNAPSHOT
- Spigot
- https://www.spigotmc.org/
-
@@ -694,7 +694,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- specialsource-maven-plugin
-
-
-- package
+- verify
-
- remap
-
@@ -707,7 +707,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
-
-
-
-- package
+- verify
-
- remap
-
diff --git a/work/BuildData b/work/BuildData
index 09c3da501..403e1fc44 160000
--- a/work/BuildData
+++ b/work/BuildData
@@ -1 +1 @@
-Subproject commit 09c3da501e40b5090cbd93cc91c8e5c49ce053b7
+Subproject commit 403e1fc440fdc9eeb6e854e6db1c1974034fccab
diff --git a/work/Bukkit b/work/Bukkit
index d25437bce..716b4fce8 160000
--- a/work/Bukkit
+++ b/work/Bukkit
@@ -1 +1 @@
-Subproject commit d25437bce34e0cb0b7c895867183dc949ea41667
+Subproject commit 716b4fce8443809ed39119dbffdd21c04fcea04a
diff --git a/work/CraftBukkit b/work/CraftBukkit
index 5a39a236c..c98abfb0f 160000
--- a/work/CraftBukkit
+++ b/work/CraftBukkit
@@ -1 +1 @@
-Subproject commit 5a39a236c11b6a5a19f8d26b4c5af1f59f16d447
+Subproject commit c98abfb0ff79f77e91a4116bd7df47495bf81162
diff --git a/work/Spigot b/work/Spigot
index 7840c2af5..b7a4222ea 160000
--- a/work/Spigot
+++ b/work/Spigot
@@ -1 +1 @@
-Subproject commit 7840c2af5f487981d5a2eab4f9e832fdd7cfb298
+Subproject commit b7a4222eac8fe8634946023cbba965187f568d07