fix compiling

This commit is contained in:
creeper123123321 2020-06-30 16:08:48 -03:00 committed by Five (Xer)
parent 6c3479e739
commit b1e60f5f1b
No known key found for this signature in database
GPG Key ID: A3F306B10E6330E7

View File

@ -2,7 +2,6 @@ package us.myles.ViaVersion.velocity.providers;
import com.velocitypowered.api.proxy.ServerConnection;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ServerChannel;
import us.myles.ViaVersion.VelocityPlugin;
import us.myles.ViaVersion.api.Via;
import us.myles.ViaVersion.api.data.UserConnection;
@ -40,7 +39,7 @@ public class VelocityVersionProvider extends VersionProvider {
private int getFrontProtocol(UserConnection user) throws Exception {
System.out.println("frontend protocol!");
int playerVersion = user.get(ProtocolInfo.class).getProtocolVersion();
int playerVersion = user.getProtocolInfo().getProtocolVersion();
IntStream versions = com.velocitypowered.api.network.ProtocolVersion.SUPPORTED_VERSIONS.stream()
.mapToInt(com.velocitypowered.api.network.ProtocolVersion::getProtocol);