From 7d7810721e81fc6c7136db659053ca79d0bf2e27 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 28 Mar 2016 22:28:52 -0400 Subject: [PATCH] Remove last patch, doesn't exactly do what I thought it was doing --- .../Remove-Invalidated-Metadata.patch | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 Spigot-API-Patches/Remove-Invalidated-Metadata.patch diff --git a/Spigot-API-Patches/Remove-Invalidated-Metadata.patch b/Spigot-API-Patches/Remove-Invalidated-Metadata.patch deleted file mode 100644 index d6020e6ad4..0000000000 --- a/Spigot-API-Patches/Remove-Invalidated-Metadata.patch +++ /dev/null @@ -1,21 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Aikar -Date: Tue, 16 Jul 2013 21:26:50 -0400 -Subject: [PATCH] Remove Invalidated Metadata - -On reload, metadata will be cleared - -diff --git a/src/main/java/org/bukkit/metadata/MetadataStoreBase.java b/src/main/java/org/bukkit/metadata/MetadataStoreBase.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/org/bukkit/metadata/MetadataStoreBase.java -+++ b/src/main/java/org/bukkit/metadata/MetadataStoreBase.java -@@ -0,0 +0,0 @@ public abstract class MetadataStoreBase { - Validate.notNull(owningPlugin, "Plugin cannot be null"); - for (Map values : metadataMap.values()) { - if (values.containsKey(owningPlugin)) { -- values.get(owningPlugin).invalidate(); -+ values.remove(owningPlugin); // Paper - Remove bad metadata, invalidate() is not implemented - } - } - } --- \ No newline at end of file