mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Allow vanilla block interaction with sneak if the block is set to be a mcMMO repair/salvage anvil
This commit is contained in:
@ -616,8 +616,8 @@ public class PlayerListener implements Listener {
|
||||
if(clickedBlockType == Repair.anvilMaterial || clickedBlockType == Salvage.anvilMaterial) {
|
||||
event.setUseItemInHand(Event.Result.ALLOW);
|
||||
|
||||
if(mcMMO.getMaterialMapStore().isToolActivationBlackListed(clickedBlockType)) {
|
||||
event.setUseInteractedBlock(Event.Result.DENY);
|
||||
if(!event.getPlayer().isSneaking() && mcMMO.getMaterialMapStore().isToolActivationBlackListed(clickedBlockType)) {
|
||||
event.setUseInteractedBlock(Event.Result.DENY);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user