13
0
geforkt von Mirrors/Paper

Update upstream CB

Dieser Commit ist enthalten in:
Zach Brown 2016-11-29 18:02:20 -06:00
Ursprung 3129310ffc
Commit b3d302b6db
2 geänderte Dateien mit 1 neuen und 29 gelöschten Zeilen

Datei anzeigen

@ -1,28 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
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
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/net/minecraft/server/EntityHuman.java
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
@@ -0,0 +0,0 @@ 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;
@@ -0,0 +0,0 @@ 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() {
--

@ -1 +1 @@
Subproject commit 41ade2f291c4596ac489606ca2b730b72b460dc2
Subproject commit fffaf0711337e31b801c50556d1e6cf4c87c617a