Skip to content

Commit

Permalink
Fix resetFrozenState do not reset speed modifier for Player
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuanchiadm committed Feb 7, 2024
1 parent 32b665c commit 41c5199
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/cn/nukkit/entity/EntityLiving.java
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,12 @@ protected void setFreezeEffectStrength(float freezeEffectStrength) {
setDataProperty(new FloatEntityData(DATA_FREEZING_EFFECT_STRENGTH, freezeEffectStrength));
}

@Override
public void resetFrozenState() {
super.resetFrozenState();
setFreezeEffectStrength(0);
}

public boolean isSleeping() {
return false;
}
Expand Down

0 comments on commit 41c5199

Please sign in to comment.