1.6.3 test 4

This commit is contained in:
Morlok8k 2012-05-31 23:45:55 -07:00
parent ee7af83455
commit 0457721c99
5 changed files with 20 additions and 10 deletions

2
README
View File

@ -1,7 +1,7 @@
Minecraft Land Generator version 1.6.3 Minecraft Land Generator version 1.6.3
Updated May 31, 2012 Updated May 31, 2012
(BuildID: 1338531617000) (BuildID: 1338533153000)
Original Code by Corrodias November 2010 Original Code by Corrodias November 2010
Enhanced Code by Morlok8k Feb. 2011 to Now (or at least to May 31, 2012!) Enhanced Code by Morlok8k Feb. 2011 to Now (or at least to May 31, 2012!)

View File

@ -43,3 +43,4 @@ C05A70CD4B913AD6AE37BC7ABF0EE2CA=1337921526000# MLG v1.6.2
8D7527BF8F0D350644506D3012BC321A=1338452175000# MLG v1.6.3 8D7527BF8F0D350644506D3012BC321A=1338452175000# MLG v1.6.3
DB07F7F5D4D46ED346ACE3AECBEA41E5=1338515819000# MLG v1.6.3 DB07F7F5D4D46ED346ACE3AECBEA41E5=1338515819000# MLG v1.6.3
1BABCC85FF9EB212B2515056BD902AC5=1338531617000# MLG v1.6.3 1BABCC85FF9EB212B2515056BD902AC5=1338531617000# MLG v1.6.3
D47A4456BA15C9436AF78C5DAA737DA3=1338533153000# MLG v1.6.3

View File

@ -1,6 +1,6 @@
#Minecraft Land Generator Configuration File: Version: 1.6.3 #Minecraft Land Generator Configuration File: Version: 1.6.3
#Authors: Corrodias, Morlok8k, pr0f1x #Authors: Corrodias, Morlok8k, pr0f1x
#Auto-Generated: Thursday, May 31, 2012 at 11:20 PM Pacific Daylight Time #Auto-Generated: Thursday, May 31, 2012 at 11:45 PM Pacific Daylight Time
#Line to run server: #Line to run server:
Java=java -Djava.awt.headless=true -Djline.terminal=jline.UnsupportedTerminal -Duser.language=en -Xms1024m -Xmx1024m -Xincgc -jar minecraft_server.jar nogui Java=java -Djava.awt.headless=true -Djline.terminal=jline.UnsupportedTerminal -Duser.language=en -Xms1024m -Xmx1024m -Xincgc -jar minecraft_server.jar nogui

Binary file not shown.

View File

@ -1605,19 +1605,21 @@ public class Main {
private void readConf() { private void readConf() {
//TODO: element comment //TODO: element comment
String errorMsg = "";
try { try {
File config = new File(MinecraftLandGeneratorConf); File config = new File(MinecraftLandGeneratorConf);
BufferedReader in = new BufferedReader(new FileReader(config)); BufferedReader in = new BufferedReader(new FileReader(config));
String line; String line = "";
String property; String property = "";
String value; String value = "";
while ((line = in.readLine()) != null) { while ((line = in.readLine()) != null) {
int pos = line.indexOf('='); int pos = line.indexOf('=');
if (pos == -1) { // If we have no = sign //if (pos == -1) { // If we have no = sign
pos = 0; // pos = 0;
} //}
int end = line.lastIndexOf('#'); // comments, ignored lines int end = line.lastIndexOf('#'); // comments, ignored lines
@ -1626,10 +1628,17 @@ public class Main {
} }
if (end <= pos) { // If hash is before the '=', we may have an issue... it should be fine, cause we check for issues next, but lets make sure. if (end <= pos) { // If hash is before the '=', we may have an issue... it should be fine, cause we check for issues next, but lets make sure.
end = line.length(); end = line.length();
pos = -1;
} }
errorMsg = line + " pos: " + pos + " end: " + end;
try {
property = line.substring(0, pos).toLowerCase(); property = line.substring(0, pos).toLowerCase();
value = line.substring(pos + 1, end); value = line.substring(pos + 1, end);
} catch (Exception e) {
err(errorMsg);
e.printStackTrace();
}
if (pos != -1) { if (pos != -1) {
if (property.equals("serverpath")) { if (property.equals("serverpath")) {