Fix bad time checks

This commit is contained in:
Jose 2017-09-20 12:53:54 -04:00 • committed by GitHub
commit d4bc1d32cf

View file

@ -93,7 +93,7 @@ public class ModAutoRepair extends Modifier
if (player.dimension == -1) if (player.dimension == -1)
return 10000 + rand; return 10000 + rand;
if (world.canSeeSky(player.getPosition()) && !world.isRaining()) if (world.canSeeSky(player.getPosition()) && !world.isRaining())
if (world.getWorldTime() >= 0 && world.getWorldTime() <= 13000) if ((world.getWorldTime() % 24000) >= 0 && (world.getWorldTime() % 24000) <= 13000)
return 12500 + rand; return 12500 + rand;
return 15000 + rand; return 15000 + rand;