* Fixed players able to die in lava, etc. Fixes #29.
This commit is contained in:
parent
905486bf40
commit
403b4a2f0c
@ -21,8 +21,7 @@ public class OnEntityDamageEvent implements Listener {
|
||||
Player player = (Player) event.getEntity();
|
||||
for (Arena arena : W.arenaList) {
|
||||
if (arena.playersInArena.contains(player)) {
|
||||
if (event.getCause().equals(DamageCause.FALL)
|
||||
|| event.getCause().equals(DamageCause.DROWNING)) {
|
||||
if (!event.getCause().equals(DamageCause.ENTITY_ATTACK)) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user