geforkt von Mirrors/Paper
Fixed the fix of the fix of javaplugin.getResource
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
96e7ebd630
Commit
8afb3fdf8e
@ -153,6 +153,11 @@ public abstract class JavaPlugin implements Plugin {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
URL url = getClassLoader().getResource(filename);
|
URL url = getClassLoader().getResource(filename);
|
||||||
|
|
||||||
|
if (url == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
URLConnection connection = url.openConnection();
|
URLConnection connection = url.openConnection();
|
||||||
connection.setUseCaches(false);
|
connection.setUseCaches(false);
|
||||||
return connection.getInputStream();
|
return connection.getInputStream();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren