Fix for not always dropping ender pearls.

This commit is contained in:
cp committed 2014-03-27 13:40:51 +08:00
1 parent 51865af400
commit 3a234d8781
1 file changed
+1 -1
@@ -100,7 +100,7 @@ public class ItemDarkSteelSword extends ItemSword implements IEnergyContainerIte
if(isEquipped(player)) {
if(evt.entityLiving instanceof EntityEnderman) {
int numPearls = 0;
if(Math.random() >= Config.darkSteelSwordEnderPearlDropChance) {
if(Math.random() <= Config.darkSteelSwordEnderPearlDropChance) {
numPearls++;
}
for (int i = 0; i < evt.lootingLevel; i++) {