From fcd5f7c99673d015fd23fe765a0236eb0c433aff Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 30 Nov 2021 17:23:56 +0100 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: b46ac671 Update to Minecraft 1.18 CraftBukkit Changes: bc14cb64 Update to Minecraft 1.18 Spigot Changes: a5dea1cb Update to Minecraft 1.18 --- patches/api/Convert-project-to-Gradle.patch | 2 +- patches/server/1.18-Release.patch | 69 --------------------- patches/server/Setup-Gradle-project.patch | 2 +- work/Bukkit | 2 +- work/CraftBukkit | 2 +- work/Spigot | 2 +- 6 files changed, 5 insertions(+), 74 deletions(-) delete mode 100644 patches/server/1.18-Release.patch diff --git a/patches/api/Convert-project-to-Gradle.patch b/patches/api/Convert-project-to-Gradle.patch index f3e7c36f4b..f919375388 100644 --- a/patches/api/Convert-project-to-Gradle.patch +++ b/patches/api/Convert-project-to-Gradle.patch @@ -110,7 +110,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - - org.spigotmc - spigot-api -- 1.18-rc3-R0.1-SNAPSHOT +- 1.18-R0.1-SNAPSHOT - jar - - Spigot-API diff --git a/patches/server/1.18-Release.patch b/patches/server/1.18-Release.patch deleted file mode 100644 index 735e674023..0000000000 --- a/patches/server/1.18-Release.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Nassim Jahnke -Date: Tue, 30 Nov 2021 09:57:30 +0100 -Subject: [PATCH] 1.18 Release - - -diff --git a/src/main/java/net/minecraft/DetectedVersion.java b/src/main/java/net/minecraft/DetectedVersion.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/DetectedVersion.java -+++ b/src/main/java/net/minecraft/DetectedVersion.java -@@ -0,0 +0,0 @@ public class DetectedVersion implements WorldVersion { - - private DetectedVersion() { - this.id = UUID.randomUUID().toString().replaceAll("-", ""); -- this.name = "1.18-rc3"; -- this.stable = false; -- this.worldVersion = new DataVersion(2858, "main"); -+ this.name = "1.18"; // Paper - release day -+ this.stable = true; // Paper - release day -+ this.worldVersion = new DataVersion(2860, "main"); // Paper - release day - this.protocolVersion = SharedConstants.getProtocolVersion(); - this.resourcePackVersion = 8; - this.dataPackVersion = 8; -diff --git a/src/main/java/net/minecraft/SharedConstants.java b/src/main/java/net/minecraft/SharedConstants.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/SharedConstants.java -+++ b/src/main/java/net/minecraft/SharedConstants.java -@@ -0,0 +0,0 @@ import net.minecraft.world.level.ChunkPos; - public class SharedConstants { - /** @deprecated */ - @Deprecated -- public static final boolean SNAPSHOT = true; -+ public static final boolean SNAPSHOT = false; // Paper - release day - /** @deprecated */ - @Deprecated -- public static final int WORLD_VERSION = 2858; -+ public static final int WORLD_VERSION = 2860; // Paper - release day - /** @deprecated */ - @Deprecated - public static final String SERIES = "main"; - /** @deprecated */ - @Deprecated -- public static final String VERSION_STRING = "1.18-rc3"; -+ public static final String VERSION_STRING = "1.18"; // Paper - release day - /** @deprecated */ - @Deprecated - public static final String RELEASE_TARGET = "1.18"; -@@ -0,0 +0,0 @@ public class SharedConstants { - } - - public static int getProtocolVersion() { -- return 1073741883; -+ return RELEASE_NETWORK_PROTOCOL_VERSION; // Paper - release day - } - - public static boolean debugVoidTerrain(ChunkPos chunkPos) { -diff --git a/src/main/java/net/minecraft/data/worldgen/placement/OrePlacements.java b/src/main/java/net/minecraft/data/worldgen/placement/OrePlacements.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/data/worldgen/placement/OrePlacements.java -+++ b/src/main/java/net/minecraft/data/worldgen/placement/OrePlacements.java -@@ -0,0 +0,0 @@ public class OrePlacements { - public static final PlacedFeature ORE_ANDESITE_LOWER = PlacementUtils.register("ore_andesite_lower", OreFeatures.ORE_ANDESITE.placed(commonOrePlacement(2, HeightRangePlacement.uniform(VerticalAnchor.absolute(0), VerticalAnchor.absolute(60))))); - public static final PlacedFeature ORE_TUFF = PlacementUtils.register("ore_tuff", OreFeatures.ORE_TUFF.placed(commonOrePlacement(2, HeightRangePlacement.uniform(VerticalAnchor.bottom(), VerticalAnchor.absolute(0))))); - public static final PlacedFeature ORE_COAL_UPPER = PlacementUtils.register("ore_coal_upper", OreFeatures.ORE_COAL.placed(commonOrePlacement(30, HeightRangePlacement.uniform(VerticalAnchor.absolute(136), VerticalAnchor.top())))); -- public static final PlacedFeature ORE_COAL_LOWER = PlacementUtils.register("ore_coal_lower", OreFeatures.ORE_COAL_BURIED.placed(commonOrePlacement(20, HeightRangePlacement.uniform(VerticalAnchor.absolute(0), VerticalAnchor.absolute(192))))); -+ public static final PlacedFeature ORE_COAL_LOWER = PlacementUtils.register("ore_coal_lower", OreFeatures.ORE_COAL_BURIED.placed(commonOrePlacement(20, HeightRangePlacement.triangle(VerticalAnchor.absolute(0), VerticalAnchor.absolute(192))))); // Paper - rc4 patch - public static final PlacedFeature ORE_IRON_UPPER = PlacementUtils.register("ore_iron_upper", OreFeatures.ORE_IRON.placed(commonOrePlacement(90, HeightRangePlacement.triangle(VerticalAnchor.absolute(80), VerticalAnchor.absolute(384))))); - public static final PlacedFeature ORE_IRON_MIDDLE = PlacementUtils.register("ore_iron_middle", OreFeatures.ORE_IRON.placed(commonOrePlacement(10, HeightRangePlacement.triangle(VerticalAnchor.absolute(-24), VerticalAnchor.absolute(56))))); - public static final PlacedFeature ORE_IRON_SMALL = PlacementUtils.register("ore_iron_small", OreFeatures.ORE_IRON_SMALL.placed(commonOrePlacement(10, HeightRangePlacement.uniform(VerticalAnchor.bottom(), VerticalAnchor.absolute(72))))); diff --git a/patches/server/Setup-Gradle-project.patch b/patches/server/Setup-Gradle-project.patch index 309e0bcda0..e64e7ca349 100644 --- a/patches/server/Setup-Gradle-project.patch +++ b/patches/server/Setup-Gradle-project.patch @@ -188,7 +188,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - org.spigotmc - spigot - jar -- 1.18-rc3-R0.1-SNAPSHOT +- 1.18-R0.1-SNAPSHOT - Spigot - https://www.spigotmc.org/ - diff --git a/work/Bukkit b/work/Bukkit index ab6e73a20e..b46ac671a3 160000 --- a/work/Bukkit +++ b/work/Bukkit @@ -1 +1 @@ -Subproject commit ab6e73a20eca8ecd0fef8720edc81e746595dd98 +Subproject commit b46ac671a310f2cd48d532d583d79ef12d9d77f2 diff --git a/work/CraftBukkit b/work/CraftBukkit index 9fb3aa4c7a..bc14cb649b 160000 --- a/work/CraftBukkit +++ b/work/CraftBukkit @@ -1 +1 @@ -Subproject commit 9fb3aa4c7ae8086c3c91122d716acc0464b2f300 +Subproject commit bc14cb649bc33d9e5a980303d365b7599a4d57f6 diff --git a/work/Spigot b/work/Spigot index b11f318fd2..a5dea1cbca 160000 --- a/work/Spigot +++ b/work/Spigot @@ -1 +1 @@ -Subproject commit b11f318fd202a058333afbe406ebcce83037b562 +Subproject commit a5dea1cbca6d941f1980dcc92102af7081d0b0f5