Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-20 06:50:10 +01:00
Throw error on unhandled 1.14->1.13 metadata
Dieser Commit ist enthalten in:
Ursprung
13b5545999
Commit
cadab9e6bb
@ -475,7 +475,7 @@ public class EntityPackets1_14 extends LegacyEntityRewriter<Protocol1_13_2To1_14
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Something
|
// Pose
|
||||||
filter().removeIndex(6);
|
filter().removeIndex(6);
|
||||||
|
|
||||||
filter().type(Entity1_14Types.OCELOT).index(13).handler((event, meta) -> {
|
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));
|
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) {
|
public int villagerDataToProfession(VillagerData data) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren