Check before casting JEI runtime

This commit is contained in:
embeddedt 2025-04-06 14:21:55 -04:00
parent 20be8d0da3
commit 85b8e0ca60
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -24,7 +24,8 @@ public class JEIRuntimeCapturer implements IModPlugin {
@Override
public void onRuntimeAvailable(IJeiRuntime jeiRuntime) {
runtimeHandle = (JeiRuntime)jeiRuntime;
if (jeiRuntime instanceof JeiRuntime)
runtimeHandle = (JeiRuntime)jeiRuntime;
}
@Override