geforkt von Mirrors/Paper
Fixed Ocelot.Type lookup - this fixes BUKKIT-952
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
d3a1476775
Commit
577152ebd1
@ -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;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren