2013-04-10 04:08:33 +00:00
|
|
|
From fb04e2f8c99e6fa036b84be52e23b02b8d61f90d Mon Sep 17 00:00:00 2001
|
2013-03-01 22:43:59 +00:00
|
|
|
From: Yariv Livay <yarivlivay@gmail.com>
|
|
|
|
Date: Mon, 25 Feb 2013 22:26:36 +0200
|
|
|
|
Subject: [PATCH] Adds BUKKIT-3667, Faux sleepers wake up normally
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2013-04-10 02:36:11 +00:00
|
|
|
index 0c36785..3ce9f8b 100644
|
2013-03-01 22:43:59 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2013-04-10 02:36:11 +00:00
|
|
|
@@ -417,7 +417,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
2013-03-01 22:43:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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()) {
|
2013-03-15 21:35:56 +00:00
|
|
|
this.o().getTracker().sendPacketToEntity(this, new Packet18ArmAnimation(this, 3));
|
2013-03-01 22:43:59 +00:00
|
|
|
--
|
2013-04-10 02:36:11 +00:00
|
|
|
1.8.2.1
|
2013-03-01 22:43:59 +00:00
|
|
|
|