Fixed suffocation disable option.

This commit is contained in:
sk89q 2011-02-02 21:03:33 -08:00
parent a31378c2c8
commit b379b8f022

View File

@ -66,6 +66,11 @@ public void onEntityDamageByBlock(EntityDamageByBlockEvent event) {
event.setCancelled(true);
return;
}
if (plugin.disableContactDamage && type == DamageCause.CONTACT) {
event.setCancelled(true);
return;
}
}
}
@ -190,11 +195,6 @@ public void onEntityDamage(EntityDamageEvent event) {
return;
}
if (plugin.disableContactDamage && type == DamageCause.CONTACT) {
event.setCancelled(true);
return;
}
if (type == DamageCause.DROWNING
&& plugin.amphibiousPlayers.contains(player.getName())) {
event.setCancelled(true);