Fixed spacing.

Fixed checking for waitSave if.
Fixed static reference.
This commit is contained in:
pr0f1x 2011-10-01 08:50:14 -04:00
parent 8eab14a61f
commit 0d256be93f
2 changed files with 36 additions and 37 deletions

Binary file not shown.

View File

@ -74,7 +74,7 @@ public class Main {
private Integer yOffset = null;
private boolean verbose = false;
private boolean alternate = false;
private boolean waitSave = false;
private static boolean waitSave = false;
private static boolean ignoreWarnings = false;
private static LongTag randomSeed = null;
@ -274,13 +274,12 @@ public class Main {
} else if (line.substring(0, pos).toLowerCase().equals("dim-9")) {
level_9 = line.substring(pos + 1, end);
} else if (line.substring(0, pos).toLowerCase().equals("waitsave")) {
string wstmp = line.toLowerCase().substring(pos + 1, end);
if (wstmp == "true"){
String wstmp = line.toLowerCase().substring(pos + 1, end);
if (wstmp.equals( "true" ) ){
waitSave = true;
} else {
waitSave = false;
}
}
}
}
@ -756,8 +755,8 @@ public class Main {
if (line.contains(doneText)) { // now this is configurable!
System.out.println("");
if (waitSave) {
System.out.println("Waiting 30 seconds for save.");
if ( waitSave ) {
System.out.println( "Waiting 30 seconds for save." );
try {
Thread.sleep( 30000 );
@ -775,8 +774,8 @@ public class Main {
outputStream.flush();
//outputStream.close();
if (waitSave) {
System.out.println("Waiting 10 seconds for save.");
if ( waitSave ) {
System.out.println( "Waiting 10 seconds for save." );
try {
Thread.sleep( 10000 );
} catch ( InterruptedException e ) {