Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Remove version check for getting protocol path
Dieser Commit ist enthalten in:
Ursprung
9fd40395eb
Commit
0fc0259d8c
@ -79,13 +79,9 @@ public class BaseProtocol extends AbstractProtocol<BaseClientboundPacket, BaseCl
|
||||
}
|
||||
|
||||
info.setServerProtocolVersion(serverProtocol);
|
||||
List<ProtocolPathEntry> protocolPath = null;
|
||||
|
||||
// Only allow newer clients (or 1.9.2 on 1.9.4 server if the server supports it)
|
||||
ProtocolManager protocolManager = Via.getManager().getProtocolManager();
|
||||
if (info.protocolVersion().newerThanOrEqualTo(serverProtocol)) {
|
||||
protocolPath = protocolManager.getProtocolPath(info.protocolVersion(), serverProtocol);
|
||||
}
|
||||
List<ProtocolPathEntry> protocolPath = protocolManager.getProtocolPath(info.protocolVersion(), serverProtocol);
|
||||
|
||||
// Add Base Protocol
|
||||
ProtocolPipeline pipeline = info.getPipeline();
|
||||
|
@ -106,12 +106,7 @@ public class BaseProtocol1_7 extends AbstractProtocol<BaseClientboundPacket, Bas
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
List<ProtocolPathEntry> protocols = null;
|
||||
if (info.protocolVersion().newerThanOrEqualTo(closestServerProtocol)) {
|
||||
protocols = Via.getManager().getProtocolManager()
|
||||
.getProtocolPath(info.protocolVersion(), closestServerProtocol);
|
||||
}
|
||||
|
||||
List<ProtocolPathEntry> protocols = Via.getManager().getProtocolManager().getProtocolPath(info.protocolVersion(), closestServerProtocol);
|
||||
if (protocols != null) {
|
||||
if (protocolVersion.equalTo(closestServerProtocol) || protocolVersion.getVersion() == 0) { // Fix ServerListPlus
|
||||
version.addProperty("protocol", info.protocolVersion().getOriginalVersion());
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren