-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.gradle
23 lines (18 loc) · 1.13 KB
/
config.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.nio.file.Files
var path = project.file("dev_settings.properties").toPath()
var properties = new Properties()
properties.putAll(wthit: "false", modmenu: "true", rei: "true", emi: "false", tech_reborn: "false", industrial_revolution: "false", modern_industrialization: "false", jade: "false")
if (Files.exists(path)) {
properties.load(Files.newBufferedReader(path))
}
properties.store(Files.newBufferedWriter(path), "IMPORTANT: Remember to reload gradle in intellij after changing!")
wthit = Boolean.parseBoolean(properties.getProperty("wthit"))
megane = Boolean.parseBoolean(properties.getProperty("megane"))
modmenu = Boolean.parseBoolean(properties.getProperty("modmenu"))
rei = Boolean.parseBoolean(properties.getProperty("rei"))
emi = Boolean.parseBoolean(properties.getProperty("emi"))
techReborn = Boolean.parseBoolean(properties.getProperty("tech_reborn"))
industrialRevolution = Boolean.parseBoolean(properties.getProperty("industrial_revolution"))
modernIndustrialization = Boolean.parseBoolean(properties.getProperty("modern_industrialization"))
jade = Boolean.parseBoolean(properties.getProperty("jade"))
println "Applied configs!"