why did i do this

This commit is contained in:
DBotThePony 2023-05-11 12:45:55 +07:00
parent 52b7e2b80e
commit 5076a9f6e2
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -63,7 +63,7 @@ public class MixinLivingEntity {
max = 0.8;
}
totalExperience *= new Random().nextDouble(min, max);
totalExperience *= min + player.getRandom().nextDouble() * (max - min);
}
if (totalExperience >= Integer.MAX_VALUE) {