Allow proper integration with NMS WorldTypes

By: md-5 <md_5@bigpond.com>
This commit is contained in:
Bukkit/Spigot
2012-01-14 11:15:56 +11:00
parent 48ecb11c09
commit c0bb2b55b2

View File

@@ -7,8 +7,8 @@ import java.util.Map;
* Represents various types of worlds that may exist * Represents various types of worlds that may exist
*/ */
public enum WorldType { public enum WorldType {
NORMAL("normal"), NORMAL("DEFAULT"),
FLAT("flat"); FLAT("FLAT");
private final static Map<String, WorldType> lookup = new HashMap<String, WorldType>(); private final static Map<String, WorldType> lookup = new HashMap<String, WorldType>();
private final String name; private final String name;