Update
This commit is contained in:
parent
f274dc1f5f
commit
fb2929215f
|
|
@ -48,7 +48,7 @@ public abstract class ModNioResourcePackMixin {
|
|||
}
|
||||
}
|
||||
|
||||
@Inject(method = "hasResource", at = @At(value = "HEAD"), cancellable = true)
|
||||
@Inject(method = "hasResource", at = @At(value = "INVOKE", target = "Lnet/fabricmc/fabric/impl/resource/loader/ModNioResourcePack;getPath(Ljava/lang/String;)Ljava/nio/file/Path;"), cancellable = true)
|
||||
private void useCacheForExistence(String path, CallbackInfoReturnable<Boolean> cir) {
|
||||
if(cacheEngine != null)
|
||||
cir.setReturnValue(this.cacheEngine.hasResource(path));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user