From e09a6fa084f83b641796ab63cdf6b1d2b51dcd7c Mon Sep 17 00:00:00 2001 From: Goh Wei Wen Date: Mon, 15 Jun 2020 04:44:36 +0800 Subject: [PATCH] Fix overkill damage with death screen --- .../main/java/de/erethon/dungeonsxl/player/DPlayerListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/de/erethon/dungeonsxl/player/DPlayerListener.java b/core/src/main/java/de/erethon/dungeonsxl/player/DPlayerListener.java index 2dd9ab5d..0b2b85bc 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/player/DPlayerListener.java +++ b/core/src/main/java/de/erethon/dungeonsxl/player/DPlayerListener.java @@ -107,6 +107,7 @@ public class DPlayerListener implements Listener { return; } if (event.getEntity() instanceof Player && !gameWorld.getDungeon().getRules().getState(GameRule.DEATH_SCREEN)) { + event.setDamage(0); GamePlayer gamePlayer = plugin.getPlayerCache().getGamePlayer((Player) event.getEntity()); if (gamePlayer == null) { return;