diff --git a/common/src/main/java/io/github/flemmli97/flan/config/Config.java b/common/src/main/java/io/github/flemmli97/flan/config/Config.java index 470c6cc..7ef5729 100644 --- a/common/src/main/java/io/github/flemmli97/flan/config/Config.java +++ b/common/src/main/java/io/github/flemmli97/flan/config/Config.java @@ -170,6 +170,8 @@ public class Config { this.buyPrice = ConfigHandler.fromJson(obj, "buyPrice", this.buyPrice); this.lockDrops = ConfigHandler.fromJson(obj, "lockDrops", this.lockDrops); this.dropTicks = ConfigHandler.fromJson(obj, "dropTicks", this.dropTicks); + this.inactivityTime = ConfigHandler.fromJson(obj, "inactivityTimeDays", this.inactivityTime); + this.inactivityBlocksMax = ConfigHandler.fromJson(obj, "inactivityBlocksMax", this.inactivityBlocksMax); } catch (IOException e) { e.printStackTrace(); } @@ -223,6 +225,8 @@ public class Config { obj.addProperty("buyPrice", this.buyPrice); obj.addProperty("lockDrops", this.lockDrops); obj.addProperty("dropTicks", this.dropTicks); + obj.addProperty("inactivityTimeDays", this.inactivityTime); + obj.addProperty("inactivityBlocksMax", this.inactivityBlocksMax); try { FileWriter writer = new FileWriter(this.config); ConfigHandler.GSON.toJson(obj, writer);