mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-15 10:25:22 +01:00
Removed deprecated code
This commit is contained in:
parent
047c167ee1
commit
5402180be4
@ -61,16 +61,6 @@ public class EntityListener extends ModifyworldListener {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (edbe instanceof EntityDamageByProjectileEvent && edbe.getDamager() == null) { // Prevent damage taken from dipenser projectile
|
||||
EntityDamageByProjectileEvent edpe = (EntityDamageByProjectileEvent) edbe;
|
||||
|
||||
if (!canMessWithEntity(player, "modifyworld.damage.take.", edpe.getProjectile())) {
|
||||
cancelDamageEvent(player, event);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} else if (event.getEntity() instanceof Player) { // player are been damaged by enviroment
|
||||
|
Loading…
Reference in New Issue
Block a user