2016-11-27 23:54:10 +01:00
|
|
|
From c741be30be3b023cb1544c6068f7db665b6d72fe Mon Sep 17 00:00:00 2001
|
2016-11-27 23:17:55 +01:00
|
|
|
From: Alfie Cleveland <alfeh@me.com>
|
|
|
|
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
|
2016-11-27 23:54:10 +01:00
|
|
|
index fd08195..eb68807 100644
|
2016-11-27 23:17:55 +01:00
|
|
|
--- 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() {
|
|
|
|
--
|
2016-11-27 23:54:10 +01:00
|
|
|
2.10.2
|
2016-11-27 23:17:55 +01:00
|
|
|
|