Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
Jose
9de1f3fc5b Fix #16 - I forgot about this being a thing... 2017-09-20 12:52:55 -04:00

View file

@ -91,7 +91,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;