Compatibility w/ other plugins' explosions #400

Is there a reason why this was placed here? If such a thing is needed, it'd be nice if it were under a config option then.
This commit is contained in:
RoboMWM 2016-02-11 22:57:17 -08:00
parent 82bc520695
commit 94787e5f39

View file

@ -444,12 +444,6 @@ public class PKListener implements Listener {
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onEntityDamageByBlock(EntityDamageByBlockEvent event) {
if (event.getCause().equals(DamageCause.BLOCK_EXPLOSION)) {
if (event.getDamager() == null) {
event.setCancelled(true);
}
}
if (event.getDamager() != null) {
if (LavaSurgeWave.isBlockInWave(event.getDamager())) {
event.setCancelled(true);