mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-02-15 01:41:58 +01:00
remove pose metadata correctly, add debug
This commit is contained in:
parent
1911bc55cd
commit
05e1fef42c
@ -406,7 +406,7 @@ public class EntityPackets1_14 extends EntityRewriter<Protocol1_13_2To1_14> {
|
||||
return meta;
|
||||
});
|
||||
|
||||
registerMetaHandler().filter(EntityType1_14.EntityType.LIVINGENTITY, true).handle(e -> {
|
||||
registerMetaHandler().handle(e -> {
|
||||
Metadata meta = e.getData();
|
||||
int index = e.getIndex();
|
||||
if (index == 6) {
|
||||
@ -416,6 +416,16 @@ public class EntityPackets1_14 extends EntityRewriter<Protocol1_13_2To1_14> {
|
||||
}
|
||||
return meta;
|
||||
});
|
||||
|
||||
registerMetaHandler().handle(e -> {
|
||||
Metadata meta = e.getData();
|
||||
int typeId = meta.getMetaType().getTypeID();
|
||||
if (typeId > 15) {
|
||||
System.out.println("new 1.14 metadata was not handled: " + meta + " entity: " + e.getEntity().getType());
|
||||
return null;
|
||||
}
|
||||
return meta;
|
||||
});
|
||||
}
|
||||
|
||||
public int villagerDataToProfession(VillagerData data) {
|
||||
|
Loading…
Reference in New Issue
Block a user