Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren