From a5478a80a3060dc5d9833be4dcfb711dc525001f Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 10 Mar 2022 18:23:05 +0100 Subject: [PATCH] Fix health issues after restart --- src/de/steamwar/misslewars/MWTeam.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/de/steamwar/misslewars/MWTeam.java b/src/de/steamwar/misslewars/MWTeam.java index bf8f859..5e28c10 100644 --- a/src/de/steamwar/misslewars/MWTeam.java +++ b/src/de/steamwar/misslewars/MWTeam.java @@ -164,6 +164,7 @@ public class MWTeam { List tempPlayer = new ArrayList<>(players); players.clear(); tempPlayer.forEach(player -> player.getInventory().clear()); + tempPlayer.forEach(player -> player.setHealth(20.0)); tempPlayer.forEach(this::join); }