diff --git a/Spigot-Server-Patches/0431-Tracking-Range-Improvements.patch b/Spigot-Server-Patches/0430-Tracking-Range-Improvements.patch similarity index 97% rename from Spigot-Server-Patches/0431-Tracking-Range-Improvements.patch rename to Spigot-Server-Patches/0430-Tracking-Range-Improvements.patch index e45c9a431..64c6ad494 100644 --- a/Spigot-Server-Patches/0431-Tracking-Range-Improvements.patch +++ b/Spigot-Server-Patches/0430-Tracking-Range-Improvements.patch @@ -1,4 +1,4 @@ -From bae03b911cd1d7c302d1da64f3bea920cc3d17d8 Mon Sep 17 00:00:00 2001 +From 8c6b864839c730a3d0205080d8bdf5e0c21bcc93 Mon Sep 17 00:00:00 2001 From: kickash32 Date: Sat, 21 Dec 2019 15:22:09 -0500 Subject: [PATCH] Tracking Range Improvements diff --git a/Spigot-Server-Patches/0432-Fix-comparator-behavior-for-EntityPhanton-goal.patch b/Spigot-Server-Patches/0431-Fix-comparator-behavior-for-EntityPhanton-goal.patch similarity index 93% rename from Spigot-Server-Patches/0432-Fix-comparator-behavior-for-EntityPhanton-goal.patch rename to Spigot-Server-Patches/0431-Fix-comparator-behavior-for-EntityPhanton-goal.patch index bb7ebb955..7e16d374b 100644 --- a/Spigot-Server-Patches/0432-Fix-comparator-behavior-for-EntityPhanton-goal.patch +++ b/Spigot-Server-Patches/0431-Fix-comparator-behavior-for-EntityPhanton-goal.patch @@ -1,4 +1,4 @@ -From b099812316e7ef71aaa7f30bc94aaab0a74605b2 Mon Sep 17 00:00:00 2001 +From 05d3e07fcbf1e0c8638e5875d5ae2716edf9a487 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 22 Jan 2020 21:00:21 +0000 Subject: [PATCH] Fix comparator behavior for EntityPhanton goal diff --git a/Spigot-Server-Patches/5000.patch b/Spigot-Server-Patches/0432-Fix-items-vanishing-through-end-portal.patch similarity index 96% rename from Spigot-Server-Patches/5000.patch rename to Spigot-Server-Patches/0432-Fix-items-vanishing-through-end-portal.patch index ae5674106..25489f7c0 100644 --- a/Spigot-Server-Patches/5000.patch +++ b/Spigot-Server-Patches/0432-Fix-items-vanishing-through-end-portal.patch @@ -1,4 +1,4 @@ -From 5d99db6a8e5a48cb45e6853344a4ff7261173d08 Mon Sep 17 00:00:00 2001 +From 046994b57b14f711db5c7546c56b184d677d69ae Mon Sep 17 00:00:00 2001 From: AJMFactsheets Date: Wed, 22 Jan 2020 19:52:28 -0600 Subject: [PATCH] Fix items vanishing through end portal diff --git a/Spigot-Server-Patches/0433-Init-legacy-material-data.patch b/Spigot-Server-Patches/0433-Init-legacy-material-data.patch new file mode 100644 index 000000000..23337bb7f --- /dev/null +++ b/Spigot-Server-Patches/0433-Init-legacy-material-data.patch @@ -0,0 +1,40 @@ +From 18d1e63fe8d950682ad5dbc1a17f9e546b04e80a Mon Sep 17 00:00:00 2001 +From: Shane Freeder +Date: Thu, 23 Jan 2020 21:30:07 +0000 +Subject: [PATCH] Init legacy material data + +This fixes an issue with plugins using legacy materials, spigot does +not populate the bukkit registry properly, leading to NPEs when using +outdated plugins. This patch should likely be dropped when spigot fixes +their legacy data usage.... + +diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java +index 6a6e4fe486..8d93ad6b45 100644 +--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java ++++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java +@@ -91,10 +91,6 @@ public final class CraftMagicNumbers implements UnsafeValues { + } + + for (Material material : Material.values()) { +- if (material.isLegacy()) { +- continue; +- } +- + MinecraftKey key = key(material); + IRegistry.ITEM.getOptional(key).ifPresent((item) -> { + MATERIAL_ITEM.put(material, item); +@@ -122,6 +118,11 @@ public final class CraftMagicNumbers implements UnsafeValues { + } + + public static MinecraftKey key(Material mat) { ++ // Paper start ++ if (mat.isLegacy()) { ++ mat = CraftLegacy.fromLegacy(mat); ++ } ++ // Paper end + return CraftNamespacedKey.toMinecraft(mat.getKey()); + } + // ======================================================================== +-- +2.25.0 +