Made creating amplified worlds a little more intuitive.

This commit is contained in:
Jeremy Wood 2013-12-10 15:14:36 -05:00
parent 79290eed0d
commit 636b8289f6
1 changed files with 5 additions and 3 deletions

View File

@ -71,12 +71,14 @@ public class EnvironmentCommand extends MultiverseCommand {
*/
public static WorldType getWorldTypeFromString(String type) {
// Don't reference the enum directly as there aren't that many, and we can be more forgiving to users this way
if (type.equalsIgnoreCase("normal"))
if (type.equalsIgnoreCase("normal")) {
type = "NORMAL";
if (type.equalsIgnoreCase("flat"))
} else if (type.equalsIgnoreCase("flat")) {
type = "FLAT";
if (type.equalsIgnoreCase("largebiomes")) {
} else if (type.equalsIgnoreCase("largebiomes")) {
type = "LARGE_BIOMES";
} else if (type.equalsIgnoreCase("amplified")) {
type = "AMPLIFIED";
}
try {
// Now that we've converted a potentially unfriendly value