[Forge] Add creative use mode and cheat mode and fix config overwrite.

This commit is contained in:
sk89q
2014-11-14 18:23:43 -08:00
parent 3bee2d4c02
commit 052addbc05
7 changed files with 45 additions and 50 deletions

View File

@ -79,6 +79,8 @@ public class PropertiesConfiguration extends LocalConfiguration {
}
}
loadExtra();
profile = getBool("profile", profile);
disallowedBlocks = getIntSet("disallowed-blocks", defaultDisallowedBlocks);
defaultChangeLimit = getInt("default-max-changed-blocks", defaultChangeLimit);
@ -137,6 +139,12 @@ public class PropertiesConfiguration extends LocalConfiguration {
}
}
/**
* Called to load extra configuration.
*/
protected void loadExtra() {
}
/**
* Get a string value.
*