Mojira Archive
MC-81805

Modified clients can easily avoid fall damage

What should happen : Falling from a certain height deals fall damage.

What actually happens : Falling generates the appropriate sound but does not deal any damage to the player.

How to reproduce : A modified client tricks the server into believing that he is always on ground by sending the appropriate packet. This does not have to be done on every tick, as illustrated in the following example.

Example (With MCP Mappings) : The following (very simple) piece of code allows the player to completely avoid any fall damage when placed for instance in the onUpdate function of EntityPlayerSP

if (this.fallDistance > 0.0D) this.connection.sendPacket(new CPacketPlayer(true));

Code analysis: See MC-132606

Unresolved

Frazew

2015-06-27, 01:16 PM

2023-08-22, 06:30 PM

2

5

Confirmed

Normal

Platform

Networking

Minecraft 1.8.7 - 1.16.2Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 1.12.2, Minecraft 1.13-pre6, 1.16.2

-