remove: авторизация Mojang

This commit is contained in:
2025-06-15 16:10:40 +03:00
parent 00c171cc07
commit ff9cccc541
4 changed files with 25 additions and 118 deletions

View File

@@ -32,22 +32,22 @@ public class Packet1Login extends Packet
{
}
public Packet1Login(String par1Str, int par2)
public Packet1Login(String username, int protocolVersion)
{
username = par1Str;
protocolVersion = par2;
this.username = username;
this.protocolVersion = protocolVersion;
}
public Packet1Login(String par1Str, int par2, WorldType par3WorldType, int par4, int par5, byte par6, byte par7, byte par8)
public Packet1Login(String username, int protocolVersion, WorldType terrainType, int serverMode, int dimension, byte difficultySetting, byte worldHeight, byte maxPlayers)
{
username = par1Str;
protocolVersion = par2;
terrainType = par3WorldType;
dimension = par5;
difficultySetting = par6;
serverMode = par4;
worldHeight = par7;
maxPlayers = par8;
this.username = username;
this.protocolVersion = protocolVersion;
this.terrainType = terrainType;
this.dimension = dimension;
this.difficultySetting = difficultySetting;
this.serverMode = serverMode;
this.worldHeight = worldHeight;
this.maxPlayers = maxPlayers;
}
/**