Commit f5509d1e authored by hatsune-miku's avatar hatsune-miku Committed by Melledy
Browse files

Disable falling damage for godmode

parent c2230485
......@@ -102,6 +102,10 @@ 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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment