Fixed backwards logic in ShakeMob.

This commit is contained in:
GJ 2012-02-20 10:25:10 -05:00
parent 227b554488
commit 887f8f3e0c

View File

@ -1144,7 +1144,7 @@ public class Fishing {
else if(le instanceof Cow) else if(le instanceof Cow)
{ {
if(Math.random() * 100 < 99){ if(Math.random() * 100 >= 99){
m.mcDropItem(loc, new ItemStack(Material.MILK_BUCKET, 1)); //rare chance to drop milk m.mcDropItem(loc, new ItemStack(Material.MILK_BUCKET, 1)); //rare chance to drop milk
} }
else if(Math.random() * 10 < 5){ else if(Math.random() * 10 < 5){
@ -1173,7 +1173,7 @@ public class Fishing {
//need to implement new shearing method //need to implement new shearing method
else if(le instanceof MushroomCow) else if(le instanceof MushroomCow)
{ {
if(Math.random() * 100 < 99){ if(Math.random() * 100 >= 99){
if(Math.random() * 10 < 5){ if(Math.random() * 10 < 5){
m.mcDropItem(loc, new ItemStack(Material.MILK_BUCKET, 1)); //rare chance to drop milk m.mcDropItem(loc, new ItemStack(Material.MILK_BUCKET, 1)); //rare chance to drop milk
} }
@ -1201,7 +1201,7 @@ public class Fishing {
} }
else if(le instanceof Snowman){ else if(le instanceof Snowman){
if(Math.random() * 100 < 99){ if(Math.random() * 100 >= 99){
m.mcDropItem(loc, new ItemStack(Material.PUMPKIN, 1)); //rare chance to drop pumpkin m.mcDropItem(loc, new ItemStack(Material.PUMPKIN, 1)); //rare chance to drop pumpkin
} }
else{ else{