diff options
author | Aikar <[email protected]> | 2020-06-28 04:35:41 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2020-06-28 04:35:41 -0400 |
commit | b6925c36afa7565cac8f9fe9d3432fe658ca1f77 (patch) | |
tree | d64424c2e64e933af075b26c6888e526d7633b69 /Spigot-Server-Patches/0158-Implement-ensureServerConversions-API.patch | |
parent | 5e9cc3a2281589ee6e0ca736712432ba4a0935cd (diff) | |
download | Paper-b6925c36afa7565cac8f9fe9d3432fe658ca1f77.tar.gz Paper-b6925c36afa7565cac8f9fe9d3432fe658ca1f77.zip |
Remove no longer needed undead horse leash patch
This is now default vanilla behavior
Fixes #3644
Diffstat (limited to 'Spigot-Server-Patches/0158-Implement-ensureServerConversions-API.patch')
-rw-r--r-- | Spigot-Server-Patches/0158-Implement-ensureServerConversions-API.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0158-Implement-ensureServerConversions-API.patch b/Spigot-Server-Patches/0158-Implement-ensureServerConversions-API.patch new file mode 100644 index 0000000000..31e9a9564f --- /dev/null +++ b/Spigot-Server-Patches/0158-Implement-ensureServerConversions-API.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +Date: Wed, 4 May 2016 22:43:12 -0400 +Subject: [PATCH] Implement ensureServerConversions API + +This will take a Bukkit ItemStack and run it through any conversions a server process would perform on it, +to ensure it meets latest minecraft expectations. + +diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java +index 97a58900ac1622e84b8bed87004c7dd85067d31e..efa013a8bf91df0b71cbf01d2c1b1099ac616c57 100644 +--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java ++++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java +@@ -326,4 +326,10 @@ public final class CraftItemFactory implements ItemFactory { + public Material updateMaterial(ItemMeta meta, Material material) throws IllegalArgumentException { + return ((CraftMetaItem) meta).updateMaterial(material); + } ++ // Paper start ++ @Override ++ public ItemStack ensureServerConversions(ItemStack item) { ++ return CraftItemStack.asCraftMirror(CraftItemStack.asNMSCopy(item)); ++ } ++ // Paper end + } |