From 23401507e4f102e2a8450237eb450d1507157434 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 26 May 2022 09:07:08 -0400 Subject: [PATCH] 1.5.0 Release Canidate 4.2 --- .../tylermurphy/hideAndSeek/game/listener/DamageHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java b/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java index 68fa84c..55741b6 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java @@ -62,7 +62,7 @@ public class DamageHandler implements Listener { 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. - } else if (!pvpEnabled && !allowNaturalCauses) { + } else if (!pvpEnabled && !allowNaturalCauses && board.contains(player)) { event.setCancelled(true); return; }