make resource acquiration work better
Some checks failed
/ Build BaseBand Loader (push) Has been cancelled

This commit is contained in:
Daniella / Tove 2024-06-09 23:39:50 +02:00
parent 148abfbc76
commit 376a04e360
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -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};
binaryKeeper.access(m -> data[0] = m.getValue().get(name));
if (!name.endsWith(".class")) {
binaryKeeper.access(m -> data[0] = m.getValue().get(name));
}
if (data[0] == null) {
URL r = Launch.classLoader.findResource(name);