From da7b564c26e8b5834ae53f17177c10fe34047365 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 25 Sep 2013 10:48:54 -0400 Subject: [PATCH] Allow access to remove negative cache entries. Useful when adding resources to the classloader. --- .../java/net/minecraft/launchwrapper/LaunchClassLoader.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java b/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java index 6dcba3d..3138554 100644 --- a/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java +++ b/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java @@ -381,4 +381,9 @@ public class LaunchClassLoader extends URLClassLoader { } } } + + public void clearNegativeEntries(Set entriesToClear) + { + negativeResourceCache.removeAll(entriesToClear); + } }