Fixed bug with Leaf Blower & Tree Feller permission nodes

This commit is contained in:
nossr50 2012-02-24 03:03:19 -08:00
parent 6708947332
commit deb3a3bd48
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@ Version 1.3.00-dev
+ Added Fast Food Service subskill to Taming
+ Added size limit to Tree Feller in config as Tree Feller Threshold
+ Re-added mcMMO reporting damage events
= Fixed bug where Tree Feller wasn't checking for Tree Feller permission
= Fixed bug where Leaf Blower required Tree Feller permissions rather than Woodcutting permissions
= Fixed Leaf Blower preventing the use of shears to collect leaves
= Fixed Green Thumb & Green Terra not consuming or requiring seeds to replant Wheat
= Fixed Super Breaker & Giga Drill Breaker failing to damage tools

View File

@ -256,7 +256,7 @@ public class mcBlockListener implements Listener
{
if(PP.getHoePreparationMode() && Herbalism.canBeGreenTerra(block))
Herbalism.greenTerraCheck(player);
if(PP.getAxePreparationMode() && block.getTypeId() == 17)
if(PP.getAxePreparationMode() && block.getTypeId() == 17 && mcPermissions.getInstance().woodCuttingAbility(player))
WoodCutting.treeFellerCheck(player);
if(PP.getPickaxePreparationMode() && Mining.canBeSuperBroken(block))
Mining.superBreakerCheck(player);
@ -361,7 +361,7 @@ public class mcBlockListener implements Listener
* LEAF BLOWER CHECKS
*/
if(block.getTypeId() == 18
&& mcPermissions.getInstance().woodCuttingAbility(player)
&& mcPermissions.getInstance().woodcutting(player)
&& PP.getSkillLevel(SkillType.WOODCUTTING) >= 100
&& m.blockBreakSimulate(block, player))
{