Fixed Ocelot.Type lookup - this fixes BUKKIT-952

This commit is contained in:
Nathan Adams
2012-03-03 00:46:27 +00:00
parent a81a572e93
commit 23aaa912a4

View File

@@ -31,6 +31,12 @@ public interface Ocelot extends Animals, Tameable {
private static final Type[] types = new Type[Type.values().length];
private final int id;
static {
for (Type type : values()) {
types[type.getId()] = type;
}
}
private Type(int id) {
this.id = id;
}