Fix bad time checks
This commit is contained in:
parent
b15412bff5
commit
d4bc1d32cf
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue