Tweak faster_texture_loading injection point for compatibility

This commit is contained in:
embeddedt 2023-06-06 19:12:03 -04:00
parent b4470eb520
commit 57e1e54441
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -96,7 +96,7 @@ public abstract class TextureAtlasMixin {
}
@Inject(method = "load(Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/client/renderer/texture/TextureAtlasSprite$Info;IIIII)Lnet/minecraft/client/renderer/texture/TextureAtlasSprite;",
at = @At("HEAD"), cancellable = true)
at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/texture/TextureAtlas;getResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/resources/ResourceLocation;"), cancellable = true)
private void loadFromExisting(ResourceManager resourceManager, TextureAtlasSprite.Info spriteInfo, int width, int height, int mipmapLevel, int originX, int originY, CallbackInfoReturnable<TextureAtlasSprite> cir) {
if(!usingFasterLoad)
return;