mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +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
1 changed files with 0 additions and 6 deletions
|
@ -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