mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Merge pull request #819 from goweiwen/fix-overkill-damage
Fix overkill damage with death screen
This commit is contained in:
commit
298fe10463
@ -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