Skip to content

Commit

Permalink
Fix mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Dec 12, 2024
1 parent dafd17b commit 92a1feb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class MixinPlayerSkinTexture {
private static final String STRIP_ALPHA = "net/minecraft/client/texture/PlayerSkinTextureDownloader.stripAlpha(Lnet/minecraft/client/texture/NativeImage;IIII)V";

@Inject(method = FILTER_IMAGE, at = @At("HEAD"))
private void beforeUpdate(NativeImage image, String url,
private static void beforeUpdate(NativeImage image, String url,
CallbackInfoReturnable<NativeImage> ci,
@Share(value = "kirinmlp_initialWidth") LocalIntRef initialWidth,
@Share(value = "kirinmlp_initialHeight") LocalIntRef initialHeight) {
Expand All @@ -29,7 +29,7 @@ private void beforeUpdate(NativeImage image, String url,
}

@ModifyReturnValue(method = FILTER_IMAGE, at = @At("RETURN"))
private NativeImage update(NativeImage image,
private static NativeImage update(NativeImage image,
@Share(value = "kirinmlp_initialWidth") LocalIntRef initialWidth,
@Share(value = "kirinmlp_initialHeight") LocalIntRef initialHeight) {
// convert skins from mojang server
Expand All @@ -41,7 +41,7 @@ private NativeImage update(NativeImage image,
@At(value = "INVOKE", target = STRIP_ALPHA),
@At(value = "INVOKE", target = STRIP_COLOR)
})
private void cancelAlphaStrip(NativeImage image, int x1, int y1, int x2, int y2,
private static void cancelAlphaStrip(NativeImage image, int x1, int y1, int x2, int y2,
Operation<Void> operation,
@Share(value = "kirinmlp_initialWidth") LocalIntRef initialWidth,
@Share(value = "kirinmlp_initialHeight") LocalIntRef initialHeight) {
Expand Down

0 comments on commit 92a1feb

Please sign in to comment.