mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed bat ponies unable to sleep at night when there is a thunderstorm. Fixes #436
This commit is contained in:
parent
19f0b60dd1
commit
ba6b9800cd
1 changed files with 1 additions and 1 deletions
|
@ -807,7 +807,7 @@ public class Pony extends Living<PlayerEntity> implements Copyable<Pony>, Update
|
|||
|
||||
public ActionResult canSleepNow() {
|
||||
if (asWorld().getGameRules().getBoolean(UGameRules.DO_NOCTURNAL_BAT_PONIES) && getSpecies().isNocturnal()) {
|
||||
return asWorld().isDay() ? ActionResult.SUCCESS : ActionResult.FAIL;
|
||||
return asWorld().isDay() || asWorld().getAmbientDarkness() >= 4 ? ActionResult.SUCCESS : ActionResult.FAIL;
|
||||
}
|
||||
|
||||
return ActionResult.PASS;
|
||||
|
|
Loading…
Reference in a new issue