mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +00:00
parent
fa9f454978
commit
f42f8bf2c3
1 changed files with 1 additions and 3 deletions
|
@ -91,10 +91,8 @@ public abstract class ElementalAbility extends CoreAbility {
|
|||
}
|
||||
|
||||
public static boolean isFullMoon(final World world) {
|
||||
final double days = Math.ceil(world.getFullTime() / 24000) + 1;
|
||||
final double phase = days % 8;
|
||||
|
||||
return phase == 0;
|
||||
return (world.getFullTime() / 24000) % 8 == 0;
|
||||
}
|
||||
|
||||
public static boolean isIce(final Block block) {
|
||||
|
|
Loading…
Reference in a new issue