From a2301816d067aa86e899fd70c79b923410d0f5d7 Mon Sep 17 00:00:00 2001 From: Alfie Cleveland Date: Sun, 27 Nov 2016 22:17:55 +0000 Subject: [PATCH] Don't process packets from offline players --- ...process-packets-from-offline-players.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Spigot-Server-Patches/0181-Don-t-process-packets-from-offline-players.patch diff --git a/Spigot-Server-Patches/0181-Don-t-process-packets-from-offline-players.patch b/Spigot-Server-Patches/0181-Don-t-process-packets-from-offline-players.patch new file mode 100644 index 000000000..96a828124 --- /dev/null +++ b/Spigot-Server-Patches/0181-Don-t-process-packets-from-offline-players.patch @@ -0,0 +1,30 @@ +From 6034656b3dfe7de1ff17ccfbac3819b38e17eed9 Mon Sep 17 00:00:00 2001 +From: Alfie Cleveland +Date: Sun, 27 Nov 2016 22:17:37 +0000 +Subject: [PATCH] Don't process packets from offline players + + +diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java +index 875343b..a7f8550 100644 +--- a/src/main/java/net/minecraft/server/EntityHuman.java ++++ b/src/main/java/net/minecraft/server/EntityHuman.java +@@ -12,6 +12,7 @@ import javax.annotation.Nullable; + // CraftBukkit start + import org.bukkit.craftbukkit.entity.CraftHumanEntity; + import org.bukkit.craftbukkit.entity.CraftItem; ++import org.bukkit.craftbukkit.entity.CraftPlayer; // Paper + import org.bukkit.entity.Player; + import org.bukkit.event.entity.EntityCombustByEntityEvent; + import org.bukkit.event.player.PlayerBedEnterEvent; +@@ -292,7 +293,7 @@ public abstract class EntityHuman extends EntityLiving { + } + + protected boolean isFrozen() { +- return this.getHealth() <= 0.0F || this.isSleeping(); ++ return this.getHealth() <= 0.0F || this.isSleeping() || (this.bukkitEntity != null && this.bukkitEntity instanceof CraftPlayer && !((CraftPlayer) this.bukkitEntity).isOnline()); // Paper - Pull #517 + } + + public void closeInventory() { +-- +2.9.3 (Apple Git-75) +