Fixed compile errors from last commit.

This commit is contained in:
gmcferrin 2012-02-04 10:45:37 -05:00
parent bb70289cb3
commit 0068a3f07a
2 changed files with 4 additions and 2 deletions

View File

@ -366,7 +366,7 @@ public class mcBlockListener implements Listener
* LEAF BLOWER CHECKS * LEAF BLOWER CHECKS
*/ */
if(block.getTypeId() == 18 if(block.getTypeId() == 18
&& mcPermissions.getInstance().woodcuttingAbility(player) && mcPermissions.getInstance().woodCuttingAbility(player)
&& PP.getSkillLevel(SkillType.WOODCUTTING) >= 100 && PP.getSkillLevel(SkillType.WOODCUTTING) >= 100
&& m.blockBreakSimulate(block, player)) && m.blockBreakSimulate(block, player))
{ {

View File

@ -22,6 +22,7 @@ import org.bukkit.Material;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.bukkit.enchantments.Enchantment;
import com.gmail.nossr50.locale.mcLocale; import com.gmail.nossr50.locale.mcLocale;
import com.gmail.nossr50.spout.SpoutStuff; import com.gmail.nossr50.spout.SpoutStuff;
import com.gmail.nossr50.Users; import com.gmail.nossr50.Users;
@ -29,6 +30,7 @@ import com.gmail.nossr50.m;
import com.gmail.nossr50.config.LoadProperties; import com.gmail.nossr50.config.LoadProperties;
import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.datatypes.PlayerProfile;
import com.gmail.nossr50.datatypes.SkillType; import com.gmail.nossr50.datatypes.SkillType;
import org.getspout.spoutapi.sound.SoundEffect;
public class Excavation public class Excavation
@ -259,7 +261,7 @@ public class Excavation
{ {
if(LoadProperties.toolsLoseDurabilityFromAbilities) if(LoadProperties.toolsLoseDurabilityFromAbilities)
{ {
if(!player.getItemInHand.containsEnchantment(Enchantment.DURABILITY)) if(!player.getItemInHand().containsEnchantment(Enchantment.DURABILITY))
m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss); m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss);
} }