From 81df3f5812da5444ebd57b03d9db841f4245b54b Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 11 Apr 2011 17:10:17 -0700 Subject: [PATCH] Made fauxSleeping persist on death and cross-world teleport. By: sk89q --- .../src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index d66e4eb2d8..225196e884 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -166,6 +166,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { newEntity.locZ = location.getZ(); newEntity.displayName = entity.displayName; newEntity.compassTarget = entity.compassTarget; + newEntity.fauxSleeping = entity.fauxSleeping; newWorld.u.c((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4); teleportSuccess = newEntity.a.teleport(location);