Fix Evocation Illager animation on 1.12

This commit is contained in:
Myles 2017-06-24 16:27:14 +01:00
parent 7cfa78557e
commit 280fe1aed0

View File

@ -17,6 +17,12 @@ public class MetadataRewriter {
// Apply rewrite
BedRewriter.toClientItem((Item) metadata.getValue());
}
// Evocation Illager aggressive property became 13
if (type.is(Entity1_12Types.EntityType.EVOCATION_ILLAGER)) {
if (metadata.getId() == 12) {
metadata.setId(13);
}
}
} catch (Exception e) {
metadatas.remove(metadata);
if (!Via.getConfig().isSuppressMetadataErrors() || Via.getManager().isDebug()) {