mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-03 14:27:51 +01:00
Force entity meta data remapper to check all non living entity metadata first. (Fixes ArmorStands)
This commit is contained in:
parent
ad3317f8d8
commit
aabd79e6c7
@ -177,8 +177,11 @@ public enum MetaIndex {
|
||||
}
|
||||
for (MetaIndex mi : MetaIndex.values()) {
|
||||
if (mi.getIndex() == index) {
|
||||
if (mi.getApplicableClass().isAssignableFrom(entityClass) ||
|
||||
mi.getApplicableClass().equals(entityClass)) {
|
||||
// To fix issue with armour stands colliding with new values
|
||||
if(mi.getApplicableClass().equals(LivingEntity.class)) continue;
|
||||
|
||||
if ((mi.getApplicableClass().isAssignableFrom(entityClass) ||
|
||||
mi.getApplicableClass().equals(entityClass))) {
|
||||
return mi;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user