mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Remove use of deprecated function.
This commit is contained in:
parent
177604e94a
commit
800a452d62
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user