Fixed dimension option
This commit is contained in:
parent
a5f57d1124
commit
521cc695c4
2 changed files with 10 additions and 9 deletions
|
|
@ -57,7 +57,7 @@
|
|||
<orderEntry type="library" name="Gradle: twitch-platform-5.16-natives-windows-32" level="project" />
|
||||
<orderEntry type="library" name="Gradle: twitch-platform-5.16-natives-windows-64" level="project" />
|
||||
<orderEntry type="library" name="Gradle: vecmath-1.3.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: forgeSrc-1.7.10-10.13.2.1230" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: :forgeSrc:1.7.10-10.13.2.1230" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: D__Modding_Caches__gradle_caches_minecraft_net_minecraftforge_forge_1_7_10_10_13_2_1230_start" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
</module>
|
||||
|
|
@ -87,13 +87,13 @@ public class Config {
|
|||
} catch (IllegalArgumentException l) {
|
||||
}
|
||||
}
|
||||
} else if (i < 1 && txt.contains("[") && txt.contains("]")) {
|
||||
} else if (i < 2 && txt.contains("[") && txt.contains("]")) {
|
||||
boolean remove = txt.trim().startsWith("-");
|
||||
txt = txt.substring(txt.indexOf("["), txt.indexOf("]"));
|
||||
if (txt.split(";").length == 2) {
|
||||
String[] results = txt.substring(txt.indexOf("[")+1, txt.indexOf("]")).split(";");
|
||||
if (results.length == 2) {
|
||||
try {
|
||||
int a = Integer.parseInt(txt.split(";")[0]);
|
||||
int b = Integer.parseInt(txt.split(";")[1]);
|
||||
int a = Integer.parseInt(results[0]);
|
||||
int b = Integer.parseInt(results[1]);
|
||||
int c;
|
||||
if (a > b) {
|
||||
c = a;
|
||||
|
|
@ -141,7 +141,8 @@ public class Config {
|
|||
}
|
||||
}
|
||||
}
|
||||
config.save();
|
||||
if(config.hasChanged())
|
||||
config.save();
|
||||
}
|
||||
|
||||
private static void setChest(String type, String list, List<ItemStack> valuables) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue