Remove use of deprecated function.

This commit is contained in:
GJ 2013-09-13 09:11:34 -04:00
parent 177604e94a
commit 800a452d62

View File

@ -224,7 +224,7 @@ public class TamingManager extends SkillManager {
switch (type) { switch (type) {
case OCELOT: case OCELOT:
((Ocelot) entity).setCatType(Ocelot.Type.getType(1 + Misc.getRandom().nextInt(3))); ((Ocelot) entity).setCatType(Ocelot.Type.values()[1 + Misc.getRandom().nextInt(3)]);
break; break;
case WOLF: case WOLF: