Fix Horse not being found in old versions

This commit is contained in:
libraryaddict 2014-06-10 12:31:36 +12:00
parent 4b06deec1b
commit 572d94219d

View File

@ -143,7 +143,6 @@ public enum DisguiseType {
// Without erroring up everything. // Without erroring up everything.
for (DisguiseType type : values()) { for (DisguiseType type : values()) {
try { try {
EntityType entityType = null;
switch (type) { switch (type) {
// Disguise item frame isn't supported. So we don't give it a entity type which should prevent it from being.. // Disguise item frame isn't supported. So we don't give it a entity type which should prevent it from being..
// Usable. // Usable.
@ -153,18 +152,18 @@ public enum DisguiseType {
case MULE: case MULE:
case UNDEAD_HORSE: case UNDEAD_HORSE:
case SKELETON_HORSE: case SKELETON_HORSE:
entityType = EntityType.HORSE; type = DisguiseType.HORSE;
break; break;
case ZOMBIE_VILLAGER: case ZOMBIE_VILLAGER:
entityType = EntityType.ZOMBIE; type = DisguiseType.ZOMBIE;
break; break;
case WITHER_SKELETON: case WITHER_SKELETON:
entityType = EntityType.SKELETON; type = DisguiseType.SKELETON;
break; break;
default: default:
entityType = EntityType.valueOf(type.name());
break; break;
} }
EntityType entityType = EntityType.valueOf(type.name());
if (entityType != null) { if (entityType != null) {
type.setEntityType(entityType); type.setEntityType(entityType);
} }