mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Fix overkill damage with death screen
This commit is contained in:
parent
df26bf3705
commit
e09a6fa084
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user