mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 12:12:54 +08:00
Remove previous fix for falling to death in godmode
This fix is more efficient
This commit is contained in:
parent
a601e13d80
commit
c424d15b32
@ -105,10 +105,6 @@ public class HandlerCombatInvocationsNotify extends PacketHandler {
|
||||
if (cachedLandingSpeed < -28) {
|
||||
damageFactor = 1f;
|
||||
}
|
||||
// Disable falling damage for players in god mode.
|
||||
if (session.getPlayer() != null && session.getPlayer().inGodmode()) {
|
||||
damageFactor = 0;
|
||||
}
|
||||
float damage = maxHP * damageFactor;
|
||||
float newHP = currentHP - damage;
|
||||
if (newHP < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user