Fixed history size being 0 with old config files.

Dieser Commit ist enthalten in:
Wizjany 2011-05-29 11:06:32 -04:00
Ursprung 1c94265ba8
Commit 281db091b8

Datei anzeigen

@ -82,7 +82,7 @@ public class BukkitConfiguration extends LocalConfiguration {
noOpPermissions = config.getBoolean("no-op-permissions", false);
LocalSession.MAX_HISTORY_SIZE = Math.max(0, config.getInt("history.size", 0));
LocalSession.MAX_HISTORY_SIZE = Math.max(0, config.getInt("history.size", 15));
LocalSession.EXPIRATION_GRACE = config.getInt("history.expiration", 10) * 60 * 1000;
String snapshotsDir = config.getString("snapshots.directory", "");