mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-12 01:48:31 +00:00
Merge pull request #401 from RoboMWM/patch-1
Compatibility with other plugins' explosions; resolves #400
This commit is contained in:
commit
27a658affe
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