Skip to content

Commit 46af337

Browse files
Update Via* libraries; Remove versioned if case
Signed-off-by: FlorianMichael <[email protected]>
1 parent 3ae29db commit 46af337

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ repositories {
5050
}
5151

5252
dependencies {
53-
includeInJar "com.viaversion:viaversion-common:5.7.1-SNAPSHOT"
54-
includeInJar "com.viaversion:viabackwards-common:5.7.1-SNAPSHOT"
55-
includeInJar "com.viaversion:viarewind-common:4.0.14-SNAPSHOT"
56-
includeInJar "net.raphimc:ViaLegacy:3.0.13-SNAPSHOT"
57-
includeInJar "com.viaversion:viaaprilfools-common:4.0.8-SNAPSHOT"
53+
includeInJar "com.viaversion:viaversion-common:5.7.2-SNAPSHOT"
54+
includeInJar "com.viaversion:viabackwards-common:5.7.1"
55+
includeInJar "com.viaversion:viarewind-common:4.0.14"
56+
includeInJar "net.raphimc:ViaLegacy:3.0.13"
57+
includeInJar "com.viaversion:viaaprilfools-common:4.0.8"
5858
includeInJar "net.raphimc:ViaBedrock:0.0.25-SNAPSHOT"
5959

6060
includeInJar "com.google.guava:guava:33.5.0-jre"

src/main/java/net/raphimc/viaproxy/protocoltranslator/impl/ViaProxyViaVersionPlatform.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ public String getPlatformVersion() {
5656
return ViaProxy.VERSION;
5757
}
5858

59-
@Override
60-
public boolean isProxy() {
61-
return true;
62-
}
63-
6459
@Override
6560
public boolean kickPlayer(final UserConnection connection, final String message) {
6661
try {

src/main/java/net/raphimc/viaproxy/proxy/client2proxy/Client2ProxyHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private void connect(final SocketAddress serverAddress, final ProtocolVersion se
264264
if (!ViaProxy.getConfig().getResourcePackUrl().isBlank()) {
265265
this.proxyConnection.getPacketHandlers().add(new ResourcePackPacketHandler(this.proxyConnection));
266266
}
267-
if ((Via.getConfig().sendPlayerDetails() || Via.getConfig().sendServerDetails()) && !serverVersion.equals(clientVersion)) {
267+
if (Via.getConfig().sendPlayerDetails() || Via.getConfig().sendServerDetails()) {
268268
this.proxyConnection.getPacketHandlers().add(new ViaVersionConnectionDetailsPacketHandler(this.proxyConnection));
269269
}
270270
this.proxyConnection.getPacketHandlers().add(new UnexpectedPacketHandler(this.proxyConnection));

0 commit comments

Comments
 (0)