1.5.0 Release Canidate 4.2

This commit is contained in:
Tyler Murphy 2022-05-26 09:07:08 -04:00
parent a05ba6d149
commit 23401507e4

View file

@ -62,7 +62,7 @@ public class DamageHandler implements Listener {
return; return;
} }
// If there is no attacker, it must of been by natural causes. If pvp is disabled, and config doesn't allow natural causes, cancel event. // If there is no attacker, it must of been by natural causes. If pvp is disabled, and config doesn't allow natural causes, cancel event.
} else if (!pvpEnabled && !allowNaturalCauses) { } else if (!pvpEnabled && !allowNaturalCauses && board.contains(player)) {
event.setCancelled(true); event.setCancelled(true);
return; return;
} }