use of net.wurstclient.features.Mod in project Wurst-MC-1.12 by Wurst-Imperium.
the class ModsConfig method loadFromJson.
@Override
protected void loadFromJson(JsonElement json) {
for (Entry<String, JsonElement> entry : json.getAsJsonObject().entrySet()) {
Mod mod = WurstClient.INSTANCE.mods.getModByName(entry.getKey());
if (mod == null || !mod.isStateSaved())
continue;
JsonObject jsonMod = entry.getValue().getAsJsonObject();
if (jsonMod.get("enabled").getAsBoolean())
mod.enableOnStartup();
}
}
Aggregations