Additional Enchanted Miner

Additional Enchanted Miner

23M Downloads

New Quarry ignores result of BreakEvent

Kotori316 opened this issue ยท 0 comments

commented

val event = new BlockEvent.BreakEvent(world, pos, state, fakePlayer)
MinecraftForge.EVENT_BUS.post(event)
val drops = if (self.enchantments.silktouch && state.getBlock.canSilkHarvest(world, pos, state, fakePlayer)) {

The code ignores the possibility of cancel.
Add

if(event.isCanceled()){
    ???
}

above code will respect the event.