Fix deobfuscation check not working on Forge 1.18+
This commit is contained in:
parent
c5a5b01bfb
commit
b943dc1449
|
|
@ -235,7 +235,7 @@ public class ModernFixEarlyConfig {
|
|||
if(!ModernFixPlatformHooks.INSTANCE.isDevEnv())
|
||||
return;
|
||||
try {
|
||||
if(ModernFixEarlyConfig.class.getResource("/net/minecraft/world/level/Level.class") == null) {
|
||||
if(ModernFixEarlyConfig.class.getClassLoader().getResource("/net/minecraft/world/level/Level.class") == null) {
|
||||
LOGGER.warn("We are in a non-Mojmap dev environment. Disabling blockstate cache patch");
|
||||
this.options.get("mixin.perf.reduce_blockstate_cache_rebuilds").addModOverride(false, "[not mojmap]");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user