Fix resource pack cache not working as well as it could
This commit is contained in:
parent
b8850b2aae
commit
04f34a00fa
|
|
@ -70,7 +70,7 @@ public abstract class ModFileResourcePackMixin implements ICachingResourcePack {
|
||||||
@Inject(method = "getResources", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "getResources", at = @At("HEAD"), cancellable = true)
|
||||||
private void fastGetResources(PackType type, String resourceNamespace, String pathIn, int maxDepth, Predicate<String> filter, CallbackInfoReturnable<Collection<ResourceLocation>> cir)
|
private void fastGetResources(PackType type, String resourceNamespace, String pathIn, int maxDepth, Predicate<String> filter, CallbackInfoReturnable<Collection<ResourceLocation>> cir)
|
||||||
{
|
{
|
||||||
if(!PackTypeHelper.isVanillaPackType(type) || this.cacheEngine == null)
|
if(!PackTypeHelper.isVanillaPackType(type))
|
||||||
return;
|
return;
|
||||||
cir.setReturnValue(this.generateResourceCache().getResources(type, resourceNamespace, pathIn, maxDepth, filter));
|
cir.setReturnValue(this.generateResourceCache().getResources(type, resourceNamespace, pathIn, maxDepth, filter));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user