mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Cancel bed return method if entity is ignoring sleep. Thanks to EdGruberman.
This commit is contained in:
parent
a2957c7b8f
commit
75ac4e00b2
1 changed files with 2 additions and 0 deletions
|
@ -874,6 +874,8 @@ public abstract class EntityHuman extends EntityLiving {
|
|||
}
|
||||
|
||||
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.m_();
|
||||
ChunkCoordinates chunkcoordinates = this.E;
|
||||
|
|
Loading…
Add table
Reference in a new issue