From 800a452d6231be7003bba4f0777e1ae054a9a8e7 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 13 Sep 2013 09:11:34 -0400 Subject: [PATCH] Remove use of deprecated function. --- .../java/com/gmail/nossr50/skills/taming/TamingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java index 1cd590246..ac5790076 100644 --- a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java @@ -224,7 +224,7 @@ public class TamingManager extends SkillManager { switch (type) { 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; case WOLF: