mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-03 14:27:51 +01:00
Mark serializer versions in ComponentRewriter as nullable
This commit is contained in:
parent
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user