Fix resource cache not being generated on Forge
This commit is contained in:
parent
215e8da87d
commit
3ad3da3680
|
|
@ -48,6 +48,7 @@ public abstract class ModFileResourcePackMixin {
|
||||||
|
|
||||||
@Inject(method = "hasResource(Ljava/lang/String;)Z", at = @At(value = "HEAD"), cancellable = true)
|
@Inject(method = "hasResource(Ljava/lang/String;)Z", at = @At(value = "HEAD"), cancellable = true)
|
||||||
private void useCacheForExistence(String path, CallbackInfoReturnable<Boolean> cir) {
|
private void useCacheForExistence(String path, CallbackInfoReturnable<Boolean> cir) {
|
||||||
|
this.generateResourceCache();
|
||||||
if(cacheEngine != null)
|
if(cacheEngine != null)
|
||||||
cir.setReturnValue(this.cacheEngine.hasResource(path));
|
cir.setReturnValue(this.cacheEngine.hasResource(path));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user