Make some more QOL changes to existing enchants

This commit is contained in:
zontreck 2024-04-02 14:00:57 -07:00
parent 82b2f62d27
commit 2713961cdf
4 changed files with 8 additions and 6 deletions

View file

@ -70,13 +70,13 @@ public class MobEggEnchantment extends Enchantment
{
OTEMod.LOGGER.info("Spawn Egg Chance (" + CHANCE + ")");
}
return rollChance((int)CHANCE);
return rollChance(CHANCE);
}
public static boolean rollChance(int percent)
{
Random rng = new Random();
int test = rng.nextInt(100) + 1;
int test = rng.nextInt(100) + 1 + (100 - percent);
if(ServerConfig.general.debug)
{
OTEMod.LOGGER.info("Spawn Egg Dice Roll (" + test + " / " + percent + ")");