Fix the bed position given to the SleepingTimeCheck event (#5107)
This commit is contained in:
parent
a02bec7ebe
commit
7c401e9a35
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@
|
|||
}
|
||||
|
||||
- if (this.field_70170_p.func_72935_r()) {
|
||||
+ if (!net.minecraftforge.event.ForgeEventFactory.fireSleepingTimeCheck(this, this.field_71081_bT)) {
|
||||
+ if (!net.minecraftforge.event.ForgeEventFactory.fireSleepingTimeCheck(this, p_180469_1_)) {
|
||||
return EntityPlayer.SleepResult.NOT_POSSIBLE_NOW;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue