3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-27 08:30:10 +01:00

remove pose metadata correctly, add debug

Dieser Commit ist enthalten in:
Gerrygames 2019-05-21 17:40:26 +02:00
Ursprung 1911bc55cd
Commit 05e1fef42c

Datei anzeigen

@ -406,7 +406,7 @@ public class EntityPackets1_14 extends EntityRewriter<Protocol1_13_2To1_14> {
return meta; return meta;
}); });
registerMetaHandler().filter(EntityType1_14.EntityType.LIVINGENTITY, true).handle(e -> { registerMetaHandler().handle(e -> {
Metadata meta = e.getData(); Metadata meta = e.getData();
int index = e.getIndex(); int index = e.getIndex();
if (index == 6) { if (index == 6) {
@ -416,6 +416,16 @@ public class EntityPackets1_14 extends EntityRewriter<Protocol1_13_2To1_14> {
} }
return meta; 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) { public int villagerDataToProfession(VillagerData data) {