mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fixed sprinting while breaking a painting edge case. Fixes BUKKIT-740
This commit is contained in:
1 parent
9b10970f6b
commit
1c28c946fa
3 files changed
+20
-10
No files matched your search
@@ -244,6 +244,13 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
}
|
||||
|
||||
if (packet10flying.hasPos && packet10flying.y == -999.0D && packet10flying.stance == -999.0D) {
|
||||
// CraftBukkit start
|
||||
if (packet10flying.x > 1 || packet10flying.z > 1) {
|
||||
System.err.println(player.getName() + " was caught trying to crash the server with an invalid position.");
|
||||
player.kickPlayer("Nope!");
|
||||
return;
|
||||
}
|
||||
// CraftBukkit end
|
||||
d5 = packet10flying.x;
|
||||
d4 = packet10flying.z;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user