Also protect pets from cacti, drowning in non-PvP worlds.

Closes #213, #79
This commit is contained in:
RoboMWM 2018-09-19 00:28:29 -07:00
parent e21a781536
commit 59196f4742

View File

@ -678,7 +678,9 @@ public class EntityEventHandler implements Listener
cause == DamageCause.FIRE ||
cause == DamageCause.FIRE_TICK ||
cause == DamageCause.LAVA ||
cause == DamageCause.SUFFOCATION))
cause == DamageCause.SUFFOCATION ||
cause == DamageCause.CONTACT ||
cause == DamageCause.DROWNING))
{
event.setCancelled(true);
return;