Fixed even more of GJ's mistakes :P

This commit is contained in:
nossr50
2012-02-09 09:47:17 -08:00
parent 9c11a6ffb0
commit a2c83425f2
4 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ public class WoodCutting
Material mat = Material.getMaterial(block.getTypeId());
if(player != null)
{
if((Math.random() * 1000 <= PP.getSkillLevel(SkillType.WOODCUTTING)) || PP.getSkillLevel(SkillType.WOODCUTTING) > 1000)
if(PP.getSkillLevel(SkillType.WOODCUTTING) > 1000 || (Math.random() * 1000 <= PP.getSkillLevel(SkillType.WOODCUTTING)))
{
ItemStack item = new ItemStack(mat, 1, (short) 0, type);
m.mcDropItem(block.getLocation(), item);