This commit is contained in:
TheCrunchy committed 2023-07-16 11:36:17 +01:00
1 parent a3912d7889
commit 1e28214ce9
10 files changed
+80 -24

No files matched your search

+2 -2
View File
@@ -74,7 +74,7 @@ public class StorageManager {
public static void Save(SiegeEquipment equipment) {
storage = new File(folder, "Example.json");
storage = new File(folder, equipment.EquipmentName + ".json");
FileWriter writer;
try {
writer = new FileWriter(storage, false);
@@ -95,7 +95,7 @@ public class StorageManager {
public CrunchProjectile deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) {
JsonObject Object = json.getAsJsonObject();
JsonElement type = Object.get(TypeName);
System.out.println(type.getAsString());
switch (type.getAsString()) {
case "Entity":
return gson.fromJson(Object, EntityProjectile.class);