Hopefully addresses part of the empty enchant issue.

This commit is contained in:
Glitchfinder 2012-10-31 22:47:04 -07:00
parent d9346ab260
commit be4e62fe9d

View File

@ -166,9 +166,8 @@ public class Fishing {
Map<Enchantment, Integer> resultEnchantments = fishingResults.getEnchantments();
for (Enchantment oldEnchant : resultEnchantments.keySet()) {
if (oldEnchant.conflictsWith(newEnchant)) {
return;
}
if (oldEnchant.conflictsWith(newEnchant))
continue;
}
/* Actual chance to have an enchantment is related to your fishing skill */
@ -180,6 +179,9 @@ public class Fishing {
randomEnchantLevel = newEnchant.getStartLevel();
}
if(randomEnchantLevel >= 1000)
continue;
fishingResults.addEnchantment(newEnchant, randomEnchantLevel);
}
}