mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed bat ponies unable to sleep at night when there is a thunderstorm. Fixes #436
This commit is contained in:
parent
b53a51173c
commit
2046ca3029
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