From 73e0fb8c882a54667039cc2a34cac22a6e3d7eb7 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 11 May 2020 20:34:05 +0200 Subject: [PATCH] Hotfix accept failure Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/sql/SchematicType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/sql/SchematicType.java b/src/de/steamwar/bungeecore/sql/SchematicType.java index 2b9d4632..368925b0 100644 --- a/src/de/steamwar/bungeecore/sql/SchematicType.java +++ b/src/de/steamwar/bungeecore/sql/SchematicType.java @@ -42,7 +42,8 @@ public class SchematicType { String checktype = section.getString("checktype"); SchematicType current = new SchematicType(type, section.getString("kuerzel"), Type.valueOf(section.getString("type")), checktype != null ? tmpFromDB.get(checktype.toLowerCase()) : null); tmpTypes.add(current); - tmpFightType.put(current, current.checkType); + if(current.checkType != null) + tmpFightType.put(current.checkType, current); tmpFromDB.put(type.toLowerCase(), current); }