mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-10 22:05:10 +01:00
Fixed the fix of the fix of javaplugin.getResource
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
96e7ebd630
commit
8afb3fdf8e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user