mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 12:49:32 +00:00
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:
parent
82bc520695
commit
94787e5f39
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue