diff --git a/src/at/pcgamingfreaks/MinePacks/Database/SQL.java b/src/at/pcgamingfreaks/MinePacks/Database/SQL.java index 1eb8c3b..a59d380 100644 --- a/src/at/pcgamingfreaks/MinePacks/Database/SQL.java +++ b/src/at/pcgamingfreaks/MinePacks/Database/SQL.java @@ -120,7 +120,7 @@ public UpdateData(String name, String uuid, int id) String uuid = res.getString(Field_UUID); if(uuid == null) { - toConvert.put(res.getString(Field_Name) ,new UpdateData(res.getString(Field_Name), null, res.getInt(Field_PlayerID))); + toConvert.put(res.getString(Field_Name).toLowerCase(), new UpdateData(res.getString(Field_Name), null, res.getInt(Field_PlayerID))); } else { @@ -136,7 +136,7 @@ public UpdateData(String name, String uuid, int id) Map newUUIDs = UUIDConverter.getUUIDsFromNames(toConvert.keySet(), true, useUUIDSeparators); for(Map.Entry entry : newUUIDs.entrySet()) { - UpdateData updateData = toConvert.get(entry.getKey()); + UpdateData updateData = toConvert.get(entry.getKey().toLowerCase()); updateData.uuid = entry.getValue(); toUpdate.add(updateData); }