From 750cc90cb7a250130afae082d5621f5ec0269c8d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 26 Jan 2020 12:42:25 +1100 Subject: [PATCH] Fix bug where disablePlugin could remove ConfigurationSerializable classes from other plugins By: md_5 --- .../main/java/org/bukkit/plugin/java/PluginClassLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java index a0551225fa..1d91015780 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java @@ -149,9 +149,9 @@ final class PluginClassLoader extends URLClassLoader { if (result != null) { loader.setClass(name, result); } - } - classes.put(name, result); + classes.put(name, result); + } } return result;