1.6.3 test 4
This commit is contained in:
parent
ee7af83455
commit
0457721c99
2
README
2
README
@ -1,7 +1,7 @@
|
||||
Minecraft Land Generator version 1.6.3
|
||||
|
||||
Updated May 31, 2012
|
||||
(BuildID: 1338531617000)
|
||||
(BuildID: 1338533153000)
|
||||
|
||||
Original Code by Corrodias November 2010
|
||||
Enhanced Code by Morlok8k Feb. 2011 to Now (or at least to May 31, 2012!)
|
||||
|
@ -43,3 +43,4 @@ C05A70CD4B913AD6AE37BC7ABF0EE2CA=1337921526000# MLG v1.6.2
|
||||
8D7527BF8F0D350644506D3012BC321A=1338452175000# MLG v1.6.3
|
||||
DB07F7F5D4D46ED346ACE3AECBEA41E5=1338515819000# MLG v1.6.3
|
||||
1BABCC85FF9EB212B2515056BD902AC5=1338531617000# MLG v1.6.3
|
||||
D47A4456BA15C9436AF78C5DAA737DA3=1338533153000# MLG v1.6.3
|
||||
|
@ -1,6 +1,6 @@
|
||||
#Minecraft Land Generator Configuration File: Version: 1.6.3
|
||||
#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:
|
||||
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.
@ -1605,19 +1605,21 @@ public class Main {
|
||||
|
||||
private void readConf() {
|
||||
//TODO: element comment
|
||||
String errorMsg = "";
|
||||
|
||||
try {
|
||||
File config = new File(MinecraftLandGeneratorConf);
|
||||
BufferedReader in = new BufferedReader(new FileReader(config));
|
||||
String line;
|
||||
String property;
|
||||
String value;
|
||||
String line = "";
|
||||
String property = "";
|
||||
String value = "";
|
||||
|
||||
while ((line = in.readLine()) != null) {
|
||||
int pos = line.indexOf('=');
|
||||
|
||||
if (pos == -1) { // If we have no = sign
|
||||
pos = 0;
|
||||
}
|
||||
//if (pos == -1) { // If we have no = sign
|
||||
// pos = 0;
|
||||
//}
|
||||
|
||||
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.
|
||||
end = line.length();
|
||||
pos = -1;
|
||||
}
|
||||
|
||||
errorMsg = line + " pos: " + pos + " end: " + end;
|
||||
try {
|
||||
property = line.substring(0, pos).toLowerCase();
|
||||
value = line.substring(pos + 1, end);
|
||||
} catch (Exception e) {
|
||||
err(errorMsg);
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if (pos != -1) {
|
||||
if (property.equals("serverpath")) {
|
||||
|
Reference in New Issue
Block a user