From 02581ec36b29663c80a90dc2d40ff56bc47cf4c8 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 4 Jun 2023 09:22:02 +0200 Subject: [PATCH] Remove Punishments and Update --- src/de/steamwar/sql/SteamwarUser.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/de/steamwar/sql/SteamwarUser.java b/src/de/steamwar/sql/SteamwarUser.java index 4ca191f..254857f 100644 --- a/src/de/steamwar/sql/SteamwarUser.java +++ b/src/de/steamwar/sql/SteamwarUser.java @@ -147,15 +147,10 @@ public class SteamwarUser { } private static List loadPunishments(List users) { - users.forEach(user -> user.punishments = Punishment.getPunishmentsOfPlayer(user.getId())); return users; } private static SteamwarUser loadPunishments(SteamwarUser user) { - if(user == null) - return null; - - user.punishments = Punishment.getPunishmentsOfPlayer(user.getId()); return user; }