|
@@ -602,11 +602,9 @@ public class PlayerListener implements Listener {
|
|
Material clickedBlockType = clickedBlock.getType();
|
|
Material clickedBlockType = clickedBlock.getType();
|
|
//The blacklist contains interactable blocks so its a convenient filter
|
|
//The blacklist contains interactable blocks so its a convenient filter
|
|
if(clickedBlockType == Repair.anvilMaterial || clickedBlockType == Salvage.anvilMaterial) {
|
|
if(clickedBlockType == Repair.anvilMaterial || clickedBlockType == Salvage.anvilMaterial) {
|
|
- Bukkit.broadcastMessage("Debug");
|
|
|
|
event.setUseItemInHand(Event.Result.ALLOW);
|
|
event.setUseItemInHand(Event.Result.ALLOW);
|
|
|
|
|
|
if(mcMMO.getMaterialMapStore().isToolActivationBlackListed(clickedBlockType)) {
|
|
if(mcMMO.getMaterialMapStore().isToolActivationBlackListed(clickedBlockType)) {
|
|
- Bukkit.broadcastMessage("Derp 2");
|
|
|
|
event.setUseInteractedBlock(Event.Result.DENY);
|
|
event.setUseInteractedBlock(Event.Result.DENY);
|
|
}
|
|
}
|
|
}
|
|
}
|