Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Mark serializer versions in ComponentRewriter as nullable
Dieser Commit ist enthalten in:
Ursprung
4a7624fef4
Commit
4066a7b5b6
@ -486,16 +486,16 @@ public class ComponentRewriter<C extends ClientboundPacketType> implements com.v
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected SerializerVersion inputSerializerVersion() {
|
protected @Nullable SerializerVersion inputSerializerVersion() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected SerializerVersion outputSerializerVersion() {
|
protected @Nullable SerializerVersion outputSerializerVersion() {
|
||||||
return inputSerializerVersion(); // Only matters if the nbt serializer changed
|
return inputSerializerVersion(); // Only matters if the nbt serializer changed
|
||||||
}
|
}
|
||||||
|
|
||||||
private void convertLegacyContents(final CompoundTag hoverEvent) {
|
private void convertLegacyContents(final CompoundTag hoverEvent) {
|
||||||
if (inputSerializerVersion() == null || outputSerializerVersion() == null) {
|
if (inputSerializerVersion() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren