mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-02-16 01:51:48 +01:00
Throw error on unhandled 1.14->1.13 metadata
This commit is contained in:
parent
13b5545999
commit
cadab9e6bb
@ -475,7 +475,7 @@ public class EntityPackets1_14 extends LegacyEntityRewriter<Protocol1_13_2To1_14
|
||||
}
|
||||
});
|
||||
|
||||
// Something
|
||||
// Pose
|
||||
filter().removeIndex(6);
|
||||
|
||||
filter().type(Entity1_14Types.OCELOT).index(13).handler((event, meta) -> {
|
||||
@ -490,6 +490,12 @@ public class EntityPackets1_14 extends LegacyEntityRewriter<Protocol1_13_2To1_14
|
||||
meta.setValue((byte) ((byte) meta.getValue() & 0x4));
|
||||
}
|
||||
});
|
||||
|
||||
filter().handler((event, meta) -> {
|
||||
if (meta.metaType().typeId() > 15) {
|
||||
throw new IllegalArgumentException("Unhandled metadata: " + meta);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public int villagerDataToProfession(VillagerData data) {
|
||||
|
Loading…
Reference in New Issue
Block a user