Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-29 12:20:06 +01:00
Merge remote-tracking branch 'origin/master'
Dieser Commit ist enthalten in:
Commit
05eea734d0
@ -126,9 +126,11 @@ public class HeadDatabase {
|
|||||||
JSONArray array = (JSONArray) parser.parse(response.toString());
|
JSONArray array = (JSONArray) parser.parse(response.toString());
|
||||||
for (Object o : array) {
|
for (Object o : array) {
|
||||||
JSONObject obj = (JSONObject) o;
|
JSONObject obj = (JSONObject) o;
|
||||||
|
String uuid = obj.get("uuid").toString();
|
||||||
|
|
||||||
Head head = new Head(id)
|
Head head = new Head(id)
|
||||||
.withName(obj.get("name").toString())
|
.withName(obj.get("name").toString())
|
||||||
.withUUID(UUID.fromString(obj.get("uuid").toString()))
|
.withUUID(uuid.isEmpty() ? UUID.randomUUID() : UUID.fromString(uuid))
|
||||||
.withValue(obj.get("value").toString())
|
.withValue(obj.get("value").toString())
|
||||||
.withCategory(category);
|
.withCategory(category);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren