mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-29 12:37:40 +01:00
Fix compatibility with older gson versions - closes #222
This commit is contained in:
parent
24e09fd2d9
commit
0a33c0aac5
@ -390,7 +390,7 @@ public class JSONBacking extends FlatfileBacking {
|
||||
data.addProperty("name", track.getName());
|
||||
JsonArray groups = new JsonArray();
|
||||
for (String s : track.getGroups()) {
|
||||
groups.add(s);
|
||||
groups.add(new JsonPrimitive(s));
|
||||
}
|
||||
data.add("groups", groups);
|
||||
|
||||
@ -447,7 +447,7 @@ public class JSONBacking extends FlatfileBacking {
|
||||
data.addProperty("name", track.getName());
|
||||
JsonArray groups = new JsonArray();
|
||||
for (String s : track.getGroups()) {
|
||||
groups.add(s);
|
||||
groups.add(new JsonPrimitive(s));
|
||||
}
|
||||
data.add("groups", groups);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user