mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 06:48:23 +01:00
Patch rebuild
This commit is contained in:
parent
3e84fd4c31
commit
b540d108ac
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
@@ -0,0 +0,0 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList
|
@@ -0,0 +0,0 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList
|
||||||
// CraftBukkit start - Check for NaN
|
|| !NumberConversions.isFinite(packetplayinflying.yaw)
|
||||||
if (!NumberConversions.isFinite(packetplayinflying.x) || !NumberConversions.isFinite(packetplayinflying.y) || !NumberConversions.isFinite(packetplayinflying.z)) {
|
|| !NumberConversions.isFinite(packetplayinflying.pitch)) {
|
||||||
c.warn(player.getName() + " was caught trying to crash the server with an invalid position.");
|
c.warn(player.getName() + " was caught trying to crash the server with an invalid position.");
|
||||||
- getPlayer().kickPlayer("Nope!");
|
- getPlayer().kickPlayer("Nope!");
|
||||||
+ getPlayer().kickPlayer("NaN in position (Hacking?)"); //Spigot "Nope" -> Descriptive reason
|
+ getPlayer().kickPlayer("NaN in position (Hacking?)"); //Spigot "Nope" -> Descriptive reason
|
||||||
|
|
Loading…
Reference in a new issue