Updated Via API usage

This commit is contained in:
RaphiMC 2024-02-13 21:44:01 +01:00
parent e91e19473f
commit d637e43f55
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -78,9 +78,6 @@ public abstract class MixinProtocolVersion {
final Pair<String, VersionRange> remapEntry = viaFabricPlus$remaps.get(name); final Pair<String, VersionRange> remapEntry = viaFabricPlus$remaps.get(name);
if (remapEntry != null) { if (remapEntry != null) {
if (remapEntry.key() != null) name = remapEntry.key(); if (remapEntry.key() != null) name = remapEntry.key();
if (remapEntry.value() != null) {
return ProtocolVersion.register(version, snapshotVersion, name, remapEntry.value());
}
} }
return ProtocolVersion.register(version, snapshotVersion, name); return ProtocolVersion.register(version, snapshotVersion, name);