Suppress certain mod errors on client load
This commit is contained in:
Binary file not shown.
@@ -149,7 +149,16 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
|
|||||||
}
|
}
|
||||||
mods.eachClass(Mod::init);
|
mods.eachClass(Mod::init);
|
||||||
finished = true;
|
finished = true;
|
||||||
Events.fire(new ClientLoadEvent());
|
var event = new ClientLoadEvent();
|
||||||
|
//a temporary measure for compatibility with certain mods
|
||||||
|
Events.fireWrap(event.getClass(), event, listener -> {
|
||||||
|
try{
|
||||||
|
listener.get(event);
|
||||||
|
}catch(NoSuchFieldError | NoSuchMethodError error){
|
||||||
|
Log.err(error);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
clientLoaded = true;
|
clientLoaded = true;
|
||||||
super.resize(graphics.getWidth(), graphics.getHeight());
|
super.resize(graphics.getWidth(), graphics.getHeight());
|
||||||
app.post(() -> app.post(() -> app.post(() -> app.post(() -> {
|
app.post(() -> app.post(() -> app.post(() -> app.post(() -> {
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ kapt.include.compile.classpath=false
|
|||||||
kotlin.stdlib.default.dependency=false
|
kotlin.stdlib.default.dependency=false
|
||||||
#needed for android compilation
|
#needed for android compilation
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
archash=41e8bb990244cd77c49e2b789bf9fc5374a711df
|
archash=db5cfe90d3eb516401d90c1c1556542de0f4676a
|
||||||
|
|||||||
Reference in New Issue
Block a user