make resource acquiration work better
Some checks failed
/ Build BaseBand Loader (push) Has been cancelled
Some checks failed
/ Build BaseBand Loader (push) Has been cancelled
This commit is contained in:
parent
148abfbc76
commit
376a04e360
1 changed files with 4 additions and 5 deletions
|
@ -86,9 +86,7 @@ public class CustomClassLoader extends ClassLoader implements Util {
|
|||
|
||||
@Override
|
||||
protected URL findResource(String name) {
|
||||
if (name.endsWith(".class")) {
|
||||
return Launch.classLoader.findResource(name);
|
||||
}
|
||||
final byte[][] data = {null};
|
||||
//if (name.startsWith("assets/minecraft") && !name.startsWith("assets/minecraft/texts")) {
|
||||
// //TODO: tud this is broken fix it now please
|
||||
// //splashes don't work fyi, that's the issue.
|
||||
|
@ -96,8 +94,9 @@ public class CustomClassLoader extends ClassLoader implements Util {
|
|||
// if (launchCLResponse != null)
|
||||
// return launchCLResponse;
|
||||
//}
|
||||
final byte[][] data = {null};
|
||||
if (!name.endsWith(".class")) {
|
||||
binaryKeeper.access(m -> data[0] = m.getValue().get(name));
|
||||
}
|
||||
|
||||
if (data[0] == null) {
|
||||
URL r = Launch.classLoader.findResource(name);
|
||||
|
|
Loading…
Add table
Reference in a new issue