mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-01 14:07:56 +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());
|
data.addProperty("name", track.getName());
|
||||||
JsonArray groups = new JsonArray();
|
JsonArray groups = new JsonArray();
|
||||||
for (String s : track.getGroups()) {
|
for (String s : track.getGroups()) {
|
||||||
groups.add(s);
|
groups.add(new JsonPrimitive(s));
|
||||||
}
|
}
|
||||||
data.add("groups", groups);
|
data.add("groups", groups);
|
||||||
|
|
||||||
@ -447,7 +447,7 @@ public class JSONBacking extends FlatfileBacking {
|
|||||||
data.addProperty("name", track.getName());
|
data.addProperty("name", track.getName());
|
||||||
JsonArray groups = new JsonArray();
|
JsonArray groups = new JsonArray();
|
||||||
for (String s : track.getGroups()) {
|
for (String s : track.getGroups()) {
|
||||||
groups.add(s);
|
groups.add(new JsonPrimitive(s));
|
||||||
}
|
}
|
||||||
data.add("groups", groups);
|
data.add("groups", groups);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user