mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-16 10:55:39 +01:00
Inline bool statement
This commit is contained in:
parent
f899271881
commit
de8a6f642c
@ -156,11 +156,9 @@ public class ClientsideFixes {
|
|||||||
if (targetVersion == null) {
|
if (targetVersion == null) {
|
||||||
targetVersion = ProtocolTranslator.getTargetVersion();
|
targetVersion = ProtocolTranslator.getTargetVersion();
|
||||||
}
|
}
|
||||||
final boolean isBedrock = Objects.equals(targetVersion, BedrockProtocolVersion.bedrockLatest);
|
|
||||||
|
|
||||||
// If the default port for this entry should be replaced, check if the address already contains a port
|
// If the default port for this entry should be replaced, check if the address already contains a port
|
||||||
// We can't just replace vanilla's default port because a bedrock server might be running on the same port
|
// We can't just replace vanilla's default port because a bedrock server might be running on the same port
|
||||||
if (BedrockSettings.global().replaceDefaultPort.getValue() && isBedrock && !info.address.contains(":")) {
|
if (BedrockSettings.global().replaceDefaultPort.getValue() && targetVersion.equals(BedrockProtocolVersion.bedrockLatest) && !info.address.contains(":")) {
|
||||||
return ServerAddress.parse(info.address + ":" + 19132);
|
return ServerAddress.parse(info.address + ":" + 19132);
|
||||||
} else {
|
} else {
|
||||||
return ServerAddress.parse(info.address);
|
return ServerAddress.parse(info.address);
|
||||||
|
Loading…
Reference in New Issue
Block a user