mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
nothing to see here Kappa Keepo
This commit is contained in:
parent
8d7f1cb595
commit
296d8ee7c1
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user