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

Mark serializer versions in ComponentRewriter as nullable

Dieser Commit ist enthalten in:
FlorianMichael 2024-10-19 14:43:43 +02:00
Ursprung 4a7624fef4
Commit 4066a7b5b6

Datei anzeigen

@ -486,16 +486,16 @@ public class ComponentRewriter<C extends ClientboundPacketType> implements com.v
}
}
protected SerializerVersion inputSerializerVersion() {
protected @Nullable SerializerVersion inputSerializerVersion() {
return null;
}
protected SerializerVersion outputSerializerVersion() {
protected @Nullable SerializerVersion outputSerializerVersion() {
return inputSerializerVersion(); // Only matters if the nbt serializer changed
}
private void convertLegacyContents(final CompoundTag hoverEvent) {
if (inputSerializerVersion() == null || outputSerializerVersion() == null) {
if (inputSerializerVersion() == null) {
return;
}