From 4812d94ad92d20781f8e43ca3c1b70c1370fc44b Mon Sep 17 00:00:00 2001 From: Spigot Date: Sat, 2 Mar 2013 09:43:59 +1100 Subject: [PATCH] Pull CraftBukkit #1042 by @YLivay - addresses players glitching when the sleep whilst being marked as faux sleepers. By: md_5 --- ...-3667-Faux-sleepers-wake-up-normally.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 CraftBukkit-Patches/0038-Adds-BUKKIT-3667-Faux-sleepers-wake-up-normally.patch diff --git a/CraftBukkit-Patches/0038-Adds-BUKKIT-3667-Faux-sleepers-wake-up-normally.patch b/CraftBukkit-Patches/0038-Adds-BUKKIT-3667-Faux-sleepers-wake-up-normally.patch new file mode 100644 index 0000000000..ee8aae8a86 --- /dev/null +++ b/CraftBukkit-Patches/0038-Adds-BUKKIT-3667-Faux-sleepers-wake-up-normally.patch @@ -0,0 +1,25 @@ +From 9ecf703c7fe76c70b811c525d40b548e4c0b3ca4 Mon Sep 17 00:00:00 2001 +From: Yariv Livay +Date: Mon, 25 Feb 2013 22:26:36 +0200 +Subject: [PATCH] Adds BUKKIT-3667, Faux sleepers wake up normally + +--- + src/main/java/net/minecraft/server/EntityPlayer.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java +index 933a2e7..fc06e62 100644 +--- a/src/main/java/net/minecraft/server/EntityPlayer.java ++++ b/src/main/java/net/minecraft/server/EntityPlayer.java +@@ -381,7 +381,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting { + } + + public void a(boolean flag, boolean flag1, boolean flag2) { +- if (this.fauxSleeping && !this.sleeping) return; // CraftBukkit - Can't leave bed if not in one! ++ if (!this.sleeping) return; // CraftBukkit - Can't leave bed if not in one! + + if (this.isSleeping()) { + this.p().getTracker().sendPacketToEntity(this, new Packet18ArmAnimation(this, 3)); +-- +1.8.1-rc2 +