From 3f3377a1eb77c133a82a652f8a0db9a668ba98a6 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 29 Sep 2021 03:12:40 +0100 Subject: [PATCH] Revert "Legacy data should look for legacy materials (Fixes #6618)" (Fixes #6664) This reverts commit 3ce522545b065775cf140c5a36e899b605b1bf63. --- ...ata-should-look-for-legacy-materials.patch | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 patches/api/Legacy-data-should-look-for-legacy-materials.patch diff --git a/patches/api/Legacy-data-should-look-for-legacy-materials.patch b/patches/api/Legacy-data-should-look-for-legacy-materials.patch deleted file mode 100644 index 9fdd2b7c00..0000000000 --- a/patches/api/Legacy-data-should-look-for-legacy-materials.patch +++ /dev/null @@ -1,19 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Shane Freeder -Date: Fri, 17 Sep 2021 09:26:06 +0100 -Subject: [PATCH] Legacy data should look for legacy materials - - -diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/org/bukkit/inventory/ItemStack.java -+++ b/src/main/java/org/bukkit/inventory/ItemStack.java -@@ -0,0 +0,0 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, net.kyor - - Material type; - if (version < 0) { -- type = Material.getMaterial(Material.LEGACY_PREFIX + (String) args.get("type")); -+ type = Material.getMaterial(Material.LEGACY_PREFIX + (String) args.get("type"), true); - - byte dataVal = (type != null && type.getMaxDurability() == 0) ? (byte) damage : 0; // Actually durable items get a 0 passed into conversion - type = Bukkit.getUnsafe().fromLegacy(new MaterialData(type, dataVal), true);