Fix #16 - I forgot about this being a thing...

This commit is contained in:
Jose 2017-09-20 12:52:55 -04:00 • committed by GitHub
commit 9de1f3fc5b

View file

@ -91,7 +91,7 @@ public class ModAutoRepair extends Modifier
if (player.dimension == -1)
return 10000 + rand;
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 15000 + rand;