View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002410||Industrial-Craft²||crossmod-compatibility / submodules / API||public||2018-08-17 23:58||2018-08-17 23:58|
|Target Version||Fixed in Version|
|Summary||0002410: EntityMiningLaser fires BlockEvent.BreakEvent, but does not check if the event is cancelled|
|Description||EntityMiningLaser#hitBlock fires a BlockEvent.BreakEvent before attempting to break the block hit by the mining laser. However, the cancellation status of this event is never checked. If a mod cancels the event from its event listener, the block will break anyway.|
To ensure compatibility with other mods, IC2 should check if the BlockEvent.BreakEvent that it fires is cancelled (as it does with the LaserEvent.LaserHitsBlockEvent fired before the BlockEvent.BreakEvent).
|Steps To Reproduce||1. Create a mod containing an event listener for BlockEvent.BreakEvent, or add such a listener to an existing mod. This listener should cancel|
2. Fire an IC2 Mining Laser at a block
2. Observe that the block is broken by the mining laser, even though the event listener was called.
|Tags||No tags attached.|