Banned blocks shouldn't prevent breaking blocks

This commit is contained in:
WHR 2020-10-17 17:59:40 +08:00
parent 853bde6da8
commit ce3ef66c25

View file

@ -65,6 +65,7 @@ AetherEventHandler {
@SubscribeEvent
public void checkBlockBannedEvent(PlayerInteractEvent event) {
if(event.action == PlayerInteractEvent.Action.LEFT_CLICK_BLOCK) return;
EntityPlayer player = event.entityPlayer;
ItemStack currentStack = player.getCurrentEquippedItem();