mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-30 15:08:43 +00:00
No more fallen to death in god mode
This commit is contained in:
parent
cba16f2868
commit
5a6512c5cf
@ -77,6 +77,9 @@ public class HandlerCombatInvocationsNotify extends PacketHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleFallOnGround(GameSession session, GameEntity entity, MotionState motionState) {
|
private void handleFallOnGround(GameSession session, GameEntity entity, MotionState motionState) {
|
||||||
|
if (session.getPlayer().inGodmode()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// People have reported that after plunge attack (client sends a FIGHT instead of FALL_ON_GROUND) they will die
|
// People have reported that after plunge attack (client sends a FIGHT instead of FALL_ON_GROUND) they will die
|
||||||
// if they talk to an NPC (this is when the client sends a FALL_ON_GROUND) without jumping again.
|
// if they talk to an NPC (this is when the client sends a FALL_ON_GROUND) without jumping again.
|
||||||
// A dirty patch: if not received immediately after MOTION_LAND_SPEED, discard this packet.
|
// A dirty patch: if not received immediately after MOTION_LAND_SPEED, discard this packet.
|
||||||
|
Loading…
Reference in New Issue
Block a user