From e77e65499faeb9567f5f4aaa930a9b5d3eaa17b2 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 28 Mar 2016 22:15:23 -0400 Subject: [PATCH] Remove Invalidated Metadata Bukkit was using an unimplemented method to invalidate plugin meta. --- .../0032-Remove-Invalidated-Metadata.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Spigot-API-Patches/0032-Remove-Invalidated-Metadata.patch diff --git a/Spigot-API-Patches/0032-Remove-Invalidated-Metadata.patch b/Spigot-API-Patches/0032-Remove-Invalidated-Metadata.patch new file mode 100644 index 0000000000..d8cfab2c20 --- /dev/null +++ b/Spigot-API-Patches/0032-Remove-Invalidated-Metadata.patch @@ -0,0 +1,23 @@ +From 67435787acb9ca2a08e976e4c00b2c4cb612d8b0 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 64c0f0a..8602669 100644 +--- a/src/main/java/org/bukkit/metadata/MetadataStoreBase.java ++++ b/src/main/java/org/bukkit/metadata/MetadataStoreBase.java +@@ -119,7 +119,7 @@ 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 + } + } + } +-- +2.7.4 +