13
0
geforkt von Mirrors/Paper

Fixed the fix of the fix of javaplugin.getResource

By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-11-22 00:03:16 +00:00
Ursprung 96e7ebd630
Commit 8afb3fdf8e

Datei anzeigen

@ -153,6 +153,11 @@ public abstract class JavaPlugin implements Plugin {
try {
URL url = getClassLoader().getResource(filename);
if (url == null) {
return null;
}
URLConnection connection = url.openConnection();
connection.setUseCaches(false);
return connection.getInputStream();