Catch IOException now raised by PropertiesFile.load().

Dieser Commit ist enthalten in:
sk89q 2010-11-26 09:36:57 -08:00
Ursprung 184af85d34
Commit 67b46a9f27

Datei anzeigen

@ -1934,7 +1934,12 @@ public class WorldEditListener extends PluginListener {
if (properties == null) { if (properties == null) {
properties = new PropertiesFile("worldedit.properties"); properties = new PropertiesFile("worldedit.properties");
} else { } else {
try {
properties.load(); properties.load();
} catch (IOException e) {
logger.warning("worldedit.properties could not be loaded: "
+ e.getMessage());
}
} }
profile = properties.getBoolean("debug-profile", false); profile = properties.getBoolean("debug-profile", false);