Skip to content

Commit 04f34a0

Browse files
committed
Fix resource pack cache not working as well as it could
1 parent b8850b2 commit 04f34a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forge/src/main/java/org/embeddedt/modernfix/forge/mixin/perf/resourcepacks/ModFileResourcePackMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private void useCacheForExistence(String path, CallbackInfoReturnable<Boolean> c
7070
@Inject(method = "getResources", at = @At("HEAD"), cancellable = true)
7171
private void fastGetResources(PackType type, String resourceNamespace, String pathIn, int maxDepth, Predicate<String> filter, CallbackInfoReturnable<Collection<ResourceLocation>> cir)
7272
{
73-
if(!PackTypeHelper.isVanillaPackType(type) || this.cacheEngine == null)
73+
if(!PackTypeHelper.isVanillaPackType(type))
7474
return;
7575
cir.setReturnValue(this.generateResourceCache().getResources(type, resourceNamespace, pathIn, maxDepth, filter));
7676
}

0 commit comments

Comments
 (0)