diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java index f418893ed..c43dffd12 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java @@ -157,7 +157,7 @@ public enum MetaIndex { } public static MetaIndex getIndex(EntityType type, int index) { - Class entityClass = type.getEntityClass(); + Class entityClass = type == null ? LivingEntity.class : type.getEntityClass(); if (entityClass == null) { System.out.println("Could not get entity class for " + type); return null;