Skip to content

Commit

Permalink
(Backport) Fixed player's skins not resolving when transparency remov…
Browse files Browse the repository at this point in the history
…al is cancelled
  • Loading branch information
Sollace committed Dec 17, 2024
1 parent ea226c9 commit f76ddc3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ private void update(NativeImage image,
@At(value = "INVOKE", target = STRIP_ALPHA),
@At(value = "INVOKE", target = STRIP_COLOR)
}, cancellable = true)
private void cancelAlphaStrip(NativeImage image, CallbackInfoReturnable<NativeImage> ci,
private void cancelAlphaStrip(NativeImage image, CallbackInfoReturnable<NativeImage> info,
@Share(value = "kirinmlp_initialWidth") LocalIntRef initialWidth,
@Share(value = "kirinmlp_initialHeight") LocalIntRef initialHeight) {
if (SkinFilterCallback.EVENT.invoker().shouldAllowTransparency(image, initialWidth.get(), initialHeight.get())) {
ci.cancel();
info.setReturnValue(SkinFilterCallback.EVENT.invoker().processImage(image, initialWidth.get(), initialHeight.get()));
}
}
// -
Expand Down

0 comments on commit f76ddc3

Please sign in to comment.