Fix packet errors

This commit is contained in:
Catfoolyou 2025-04-14 14:31:52 -04:00
parent 2e19341a76
commit 3a10258a98
7 changed files with 14450 additions and 14259 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -156,7 +156,7 @@ public class NetLoginHandler extends NetHandler {
}
this.finishedProcessing = true;
System.out.println(this.finishedProcessing);
System.out.println("finished processing");
}
public void handleErrorMessage(String par1Str, Object[] par2ArrayOfObj) {

View File

@ -81,6 +81,7 @@ public abstract class ServerConfigurationManager
var7.sendPacketToPlayer(new Packet6SpawnPosition(var6.posX, var6.posY, var6.posZ));
var7.sendPacketToPlayer(new Packet202PlayerAbilities(par2EntityPlayerMP.capabilities));
var7.sendPacketToPlayer(new Packet16BlockItemSwitch(par2EntityPlayerMP.inventory.currentItem));
System.out.println("sent 4 packets");
this.func_96456_a((ServerScoreboard)var5.getScoreboard(), par2EntityPlayerMP);
this.updateTimeAndWeatherForPlayer(par2EntityPlayerMP, var5);
this.sendPacketToAllPlayers(new Packet3Chat(EnumChatFormatting.YELLOW + par2EntityPlayerMP.getTranslatedEntityName() + EnumChatFormatting.YELLOW + " joined the game."));
@ -88,11 +89,7 @@ public abstract class ServerConfigurationManager
var7.setPlayerLocation(par2EntityPlayerMP.posX, par2EntityPlayerMP.posY, par2EntityPlayerMP.posZ, par2EntityPlayerMP.rotationYaw, par2EntityPlayerMP.rotationPitch);
var7.sendPacketToPlayer(new Packet4UpdateTime(var5.getTotalWorldTime(), var5.getWorldTime(), var5.getGameRules().getGameRuleBooleanValue("doDaylightCycle")));
if (this.mcServer.getTexturePack().length() > 0)
{
// System.out.println("what the fuck??");
// par2EntityPlayerMP.requestTexturePackLoad(this.mcServer.getTexturePack(), this.mcServer.textureSize());
}
System.out.println("done sending packets and shit");
Iterator var8 = par2EntityPlayerMP.getActivePotionEffects().iterator();
@ -113,6 +110,7 @@ public abstract class ServerConfigurationManager
var10.forceSpawn = false;
}
}
System.out.println("should be done");
}
protected void func_96456_a(ServerScoreboard par1ServerScoreboard, EntityPlayerMP par2EntityPlayerMP)

View File

@ -51,6 +51,7 @@ public class GuiScreenSingleplayerConnecting extends GuiScreen {
try {
netHandler = new NetClientHandler(mc, EaglerProfile.username);
this.mc.setNetManager(netHandler.getNetManager());
netHandler.handleSharedKey(new Packet252SharedKey());
netHandler.addToSendQueue(new Packet2ClientProtocol(78, EaglerProfile.username, "127.0.0.1", mc.gameSettings.renderDistance));
netHandler.addToSendQueue(new Packet250CustomPayload("EAG|MySkin", EaglerProfile.getSkinPacket()));
netHandler.addToSendQueue(new Packet250CustomPayload("EAG|MyCape", EaglerProfile.getCapePacket()));