mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
Fix packet errors
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user