Merge remote-tracking branch 'origin/main' into 1.18
This commit is contained in:
commit
f9ff9eb6fb
|
|
@ -55,7 +55,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) {
|
private void useCacheForExistence(String path, CallbackInfoReturnable<Boolean> cir) {
|
||||||
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