Catch IOException now raised by PropertiesFile.load().

This commit is contained in:
sk89q 2010-11-26 09:36:57 -08:00
parent 184af85d34
commit 67b46a9f27

View File

@ -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 {
properties.load(); try {
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);