mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 19:46:21 +01:00
Cancel bed return method if entity is ignoring sleep. Thanks to EdGruberman.
This commit is contained in:
parent
a2957c7b8f
commit
75ac4e00b2
@ -874,6 +874,8 @@ public abstract class EntityHuman extends EntityLiving {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void a(boolean flag, boolean flag1, boolean flag2) {
|
public void a(boolean flag, boolean flag1, boolean flag2) {
|
||||||
|
if (this.fauxSleeping) return; // CraftBukkit - Can't leave bed if not in one!
|
||||||
|
|
||||||
this.b(0.6F, 1.8F);
|
this.b(0.6F, 1.8F);
|
||||||
this.m_();
|
this.m_();
|
||||||
ChunkCoordinates chunkcoordinates = this.E;
|
ChunkCoordinates chunkcoordinates = this.E;
|
||||||
|
Loading…
Reference in New Issue
Block a user