Skip to content

Commit

Permalink
Parity with vanilla fading
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Nov 13, 2024
1 parent 45c2157 commit 15a564f
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,21 @@ private static int replaceAlpha(int color, int alpha) {

@ModifyConstant(
method = "render",
constant = @Constant(
floatValue = 1000.0F,
ordinal = 0
),
constant = {
@Constant(
floatValue = 1000.0F,
ordinal = 0
),
@Constant(
floatValue = 500.0F,
ordinal = 0
)
},
require = 0
)
public float rrls$changeAnimationSpeed(float instance) {
if (!rrls$getState().isRendering()) {
return ConfigExpectPlatform.animationSpeed();
return instance == 1000.0F ? RrlsConfig.animationSpeed() : RrlsConfig.animationSpeed() / 2;
}

return instance;
Expand Down

0 comments on commit 15a564f

Please sign in to comment.