mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fix bug with Leaf Blower.
This commit is contained in:
parent
43e3dd7977
commit
cbeb994b69
@ -379,16 +379,18 @@ public class mcBlockListener implements Listener
|
|||||||
{
|
{
|
||||||
if(LoadProperties.woodcuttingrequiresaxe)
|
if(LoadProperties.woodcuttingrequiresaxe)
|
||||||
{
|
{
|
||||||
if(m.isAxes(inhand))
|
if(m.isAxes(inhand)){
|
||||||
event.setInstaBreak(true);
|
event.setInstaBreak(true);
|
||||||
WoodCutting.leafBlower(player, block);
|
WoodCutting.leafBlower(player, block);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
event.setInstaBreak(true);
|
event.setInstaBreak(true);
|
||||||
WoodCutting.leafBlower(player, block);
|
WoodCutting.leafBlower(player, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(block.getType() == Material.AIR && plugin.misc.blockWatchList.contains(block))
|
if(block.getType() == Material.AIR && plugin.misc.blockWatchList.contains(block))
|
||||||
{
|
{
|
||||||
plugin.misc.blockWatchList.remove(block);
|
plugin.misc.blockWatchList.remove(block);
|
||||||
|
@ -213,12 +213,6 @@ public class WoodCutting
|
|||||||
m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss);
|
m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Math.random() * 10 > 9)
|
|
||||||
{
|
|
||||||
ItemStack x = new ItemStack(Material.SAPLING, 1, (short)0, (byte)(block.getData()-8));
|
|
||||||
m.mcDropItem(block.getLocation(), x);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(LoadProperties.spoutEnabled)
|
if(LoadProperties.spoutEnabled)
|
||||||
SpoutStuff.playSoundForPlayer(SoundEffect.POP, player, block.getLocation());
|
SpoutStuff.playSoundForPlayer(SoundEffect.POP, player, block.getLocation());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user