Skip to content

Commit b943dc1

Browse files
committed
Fix deobfuscation check not working on Forge 1.18+
1 parent c5a5b01 commit b943dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/embeddedt/modernfix/core/config/ModernFixEarlyConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private void checkBlockstateCacheRebuilds() {
235235
if(!ModernFixPlatformHooks.INSTANCE.isDevEnv())
236236
return;
237237
try {
238-
if(ModernFixEarlyConfig.class.getResource("/net/minecraft/world/level/Level.class") == null) {
238+
if(ModernFixEarlyConfig.class.getClassLoader().getResource("/net/minecraft/world/level/Level.class") == null) {
239239
LOGGER.warn("We are in a non-Mojmap dev environment. Disabling blockstate cache patch");
240240
this.options.get("mixin.perf.reduce_blockstate_cache_rebuilds").addModOverride(false, "[not mojmap]");
241241
}

0 commit comments

Comments
 (0)