From 9f446a771f6899dd8af56dd783e4d5ae85d344b3 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 10 Sep 2020 19:47:58 -0400 Subject: [PATCH] (FIRST 1.16.3): Update Paper to 1.16.3 This is a pretty tiny update with very little changed. Recommended to update from 1.16.2 ASAP as 1.16.2 is now no longer supported. Plugins should mostly remain working as the NMS revision did not change. --- Paper-MojangAPI/pom.xml | 2 +- Spigot-API-Patches/POM-changes.patch | 2 +- ...thods-to-control-if-armour-stands-can-move.patch | 2 +- .../Add-tick-times-API-and-mspt-command.patch | 4 ++-- .../Allow-overriding-the-java-version-check.patch | 4 ++-- Spigot-Server-Patches/Anti-Xray.patch | 12 ------------ .../Do-not-load-chunks-for-Pathfinding.patch | 2 +- .../Entity-Activation-Range-2.0.patch | 10 +++++----- Spigot-Server-Patches/EntityPathfindEvent.patch | 2 +- .../Implement-Expanded-ArmorStand-API.patch | 13 ++----------- .../Improve-EntityShootBowEvent.patch | 2 +- Spigot-Server-Patches/POM-Changes.patch | 4 ++-- ...ute-position-the-first-time-an-entity-is-s.patch | 2 +- .../Use-a-Shared-Random-for-Entities.patch | 2 +- work/BuildData | 2 +- work/Bukkit | 2 +- work/CraftBukkit | 2 +- work/Spigot | 2 +- 18 files changed, 25 insertions(+), 46 deletions(-) diff --git a/Paper-MojangAPI/pom.xml b/Paper-MojangAPI/pom.xml index 03a17db372..0ac10a3f00 100644 --- a/Paper-MojangAPI/pom.xml +++ b/Paper-MojangAPI/pom.xml @@ -10,7 +10,7 @@ com.destroystokyo.paper paper-mojangapi - 1.16.2-R0.1-SNAPSHOT + 1.16.3-R0.1-SNAPSHOT jar Paper-MojangAPI diff --git a/Spigot-API-Patches/POM-changes.patch b/Spigot-API-Patches/POM-changes.patch index 49f97fad5f..a866301f58 100644 --- a/Spigot-API-Patches/POM-changes.patch +++ b/Spigot-API-Patches/POM-changes.patch @@ -22,7 +22,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - spigot-api + com.destroystokyo.paper + paper-api - 1.16.2-R0.1-SNAPSHOT + 1.16.3-R0.1-SNAPSHOT jar - Spigot-API diff --git a/Spigot-Server-Patches/Add-API-methods-to-control-if-armour-stands-can-move.patch b/Spigot-Server-Patches/Add-API-methods-to-control-if-armour-stands-can-move.patch index e500ed615f..ff0274f21a 100644 --- a/Spigot-Server-Patches/Add-API-methods-to-control-if-armour-stands-can-move.patch +++ b/Spigot-Server-Patches/Add-API-methods-to-control-if-armour-stands-can-move.patch @@ -36,7 +36,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java @@ -0,0 +0,0 @@ public class CraftArmorStand extends CraftLivingEntity implements ArmorStand { public boolean hasEquipmentLock(EquipmentSlot equipmentSlot, LockType lockType) { - return (getHandle().bv & (1 << CraftEquipmentSlot.getNMS(equipmentSlot).c() + lockType.ordinal() * 8)) != 0; + return (getHandle().disabledSlots & (1 << CraftEquipmentSlot.getNMS(equipmentSlot).getSlotFlag() + lockType.ordinal() * 8)) != 0; } + // Paper start + @Override diff --git a/Spigot-Server-Patches/Add-tick-times-API-and-mspt-command.patch b/Spigot-Server-Patches/Add-tick-times-API-and-mspt-command.patch index b3a2f69298..4530750b10 100644 --- a/Spigot-Server-Patches/Add-tick-times-API-and-mspt-command.patch +++ b/Spigot-Server-Patches/Add-tick-times-API-and-mspt-command.patch @@ -116,8 +116,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 this.methodProfiler.exit(); org.spigotmc.WatchdogThread.tick(); // Spigot @@ -0,0 +0,0 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant 58.0) { - System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 14 is supported."); + if (javaVersion > 59.0) { + System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 15 is supported."); - return; + if (!Boolean.getBoolean("Paper.IgnoreJavaVersion")) return; // Paper } diff --git a/Spigot-Server-Patches/Anti-Xray.patch b/Spigot-Server-Patches/Anti-Xray.patch index 3bbfa57094..d1154312d5 100644 --- a/Spigot-Server-Patches/Anti-Xray.patch +++ b/Spigot-Server-Patches/Anti-Xray.patch @@ -1197,18 +1197,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 int j = along.length * 64 / 4096; if (this.h == this.b) { -diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/server/MinecraftServer.java -+++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -0,0 +0,0 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant armorItems; - private boolean armorStandInvisible; - public long bi; -- public int bv; //PAIL private -> public, rename disabledSlots -+ public int bv; public final void setDisabledSlots(int i) { bv = i; } public final int getDisabledSlots() { return bv; } // Paper - OBFHELPER - public Vector3f headPose; - public Vector3f bodyPose; - public Vector3f leftArmPose; @@ -0,0 +0,0 @@ public class EntityArmorStand extends EntityLiving { return enumitemslot; } + public final boolean isSlotDisabled(EnumItemSlot slot) { return this.d(slot); } // Paper - OBFHELPER private boolean d(EnumItemSlot enumitemslot) { - return (this.bv & 1 << enumitemslot.c()) != 0 || enumitemslot.a() == EnumItemSlot.Function.HAND && !this.hasArms(); + return (this.disabledSlots & 1 << enumitemslot.getSlotFlag()) != 0 || enumitemslot.a() == EnumItemSlot.Function.HAND && !this.hasArms(); } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 @@ -102,7 +93,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + net.minecraft.server.EnumItemSlot nmsSlot = org.bukkit.craftbukkit.CraftEquipmentSlot.getNMS(slot); + disabled += (1 << nmsSlot.c()) + (1 << (nmsSlot.c() + 8)) + (1 << (nmsSlot.c() + 16)); + } -+ getHandle().setDisabledSlots(disabled); ++ getHandle().disabledSlots = disabled; + } + + @Override diff --git a/Spigot-Server-Patches/Improve-EntityShootBowEvent.patch b/Spigot-Server-Patches/Improve-EntityShootBowEvent.patch index 486b122a8c..2288e3565c 100644 --- a/Spigot-Server-Patches/Improve-EntityShootBowEvent.patch +++ b/Spigot-Server-Patches/Improve-EntityShootBowEvent.patch @@ -28,7 +28,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper end } - class a extends EntityIllagerWizard.c { + class a extends EntityIllagerWizard.PathfinderGoalCastSpell { diff --git a/src/main/java/net/minecraft/server/EntitySkeletonAbstract.java b/src/main/java/net/minecraft/server/EntitySkeletonAbstract.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/server/EntitySkeletonAbstract.java diff --git a/Spigot-Server-Patches/POM-Changes.patch b/Spigot-Server-Patches/POM-Changes.patch index 29e3d0ea24..71ab781a8c 100644 --- a/Spigot-Server-Patches/POM-Changes.patch +++ b/Spigot-Server-Patches/POM-Changes.patch @@ -16,7 +16,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - spigot + paper jar - 1.16.2-R0.1-SNAPSHOT + 1.16.3-R0.1-SNAPSHOT - Spigot - https://www.spigotmc.org/ + Paper @@ -27,7 +27,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + UTF-8 unknown - 1.16.2 + 1.16.3 @@ -0,0 +0,0 @@ diff --git a/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch b/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch index b855e2175b..90447ce06f 100644 --- a/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch +++ b/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch @@ -48,7 +48,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper end this.trackedPlayers = trackedPlayers; // CraftBukkit end - this.m = Vec3D.a; + this.m = Vec3D.ORIGIN; @@ -0,0 +0,0 @@ public class EntityTrackerEntry { } diff --git a/Spigot-Server-Patches/Use-a-Shared-Random-for-Entities.patch b/Spigot-Server-Patches/Use-a-Shared-Random-for-Entities.patch index 7b858352dd..8add76f630 100644 --- a/Spigot-Server-Patches/Use-a-Shared-Random-for-Entities.patch +++ b/Spigot-Server-Patches/Use-a-Shared-Random-for-Entities.patch @@ -32,7 +32,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public CraftEntity getBukkitEntity() { @@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke - this.x = Vec3D.a; + this.x = Vec3D.ORIGIN; this.am = 1.0F; this.an = 1.0F; - this.random = new Random(); diff --git a/work/BuildData b/work/BuildData index 2589242cca..b2025bdddd 160000 --- a/work/BuildData +++ b/work/BuildData @@ -1 +1 @@ -Subproject commit 2589242ccafbffaeb0a36d16e9f59f97ab3411b7 +Subproject commit b2025bdddde79aea004399ec5f3652a1bce56b7a diff --git a/work/Bukkit b/work/Bukkit index 0e90062a29..84fcddbf95 160000 --- a/work/Bukkit +++ b/work/Bukkit @@ -1 +1 @@ -Subproject commit 0e90062a2976d944b4c58187cbd8af95b9764b11 +Subproject commit 84fcddbf950c5414164ec4767c77b5a113aeca6e diff --git a/work/CraftBukkit b/work/CraftBukkit index b8ee6a89fd..bf3d720714 160000 --- a/work/CraftBukkit +++ b/work/CraftBukkit @@ -1 +1 @@ -Subproject commit b8ee6a89fd17f377a356cdd88be1453389cc647f +Subproject commit bf3d7207140a295c35d4024a43cd188824c5a359 diff --git a/work/Spigot b/work/Spigot index b5a13e6d36..3a70bd92b9 160000 --- a/work/Spigot +++ b/work/Spigot @@ -1 +1 @@ -Subproject commit b5a13e6d369902135ae04e4e218846ad10201c85 +Subproject commit 3a70bd92b96d836dd046576a57deb7c8573c88a7