mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-03-03 16:51:28 +01:00
Fixed stats for falling not being tracked correctly
This commit is contained in:
parent
ae1f49bd13
commit
c4e102e74b
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ abstract class MixinPlayerEntity extends LivingEntity implements PonyContainer<P
|
|||
get().onImpact(fallDistance, damageMultiplier, cause).ifPresent(newDistance -> {
|
||||
PlayerEntity self = (PlayerEntity)(Object)this;
|
||||
|
||||
if (newDistance >= 2) {
|
||||
self.increaseStat(Stats.FALL_ONE_CM, Math.round(newDistance * 100));
|
||||
if (distance >= 2) {
|
||||
self.increaseStat(Stats.FALL_ONE_CM, Math.round(distance * 100));
|
||||
}
|
||||
|
||||
info.setReturnValue(super.handleFallDamage(newDistance, damageMultiplier, cause));
|
||||
|
|
Loading…
Add table
Reference in a new issue