I hate singleplayer

This commit is contained in:
catfoolyou
2025-03-26 19:08:30 -04:00
parent 7307920c30
commit 27a91f4260
7 changed files with 15308 additions and 15296 deletions

View File

@@ -93,8 +93,9 @@ public class WorkerNetworkManager implements INetworkManager {
//System.out.println("[Server][" + ipcChannel + "]: packet '" + pkt.getClass().getSimpleName() + "' recieved");
try {
pkt.processPacket(theNetHandler); // This is a problem, it bitches with the error message below
pkt.processPacket(theNetHandler); // This is a problem
}catch(Throwable t) {
System.out.println(theNetHandler.getClass().getSimpleName());
System.err.println("Could not process minecraft packet 0x" + Integer.toHexString(pkt.getPacketId()) + " class '" + pkt.getClass().getSimpleName() + "' on channel 'NET|" + ipcChannel + "'");
t.printStackTrace();
}

View File

@@ -51,14 +51,13 @@ public class NetLoginHandler extends NetHandler {
*/
public void handlePackets() {
System.out.println("[SP-Server][LOGIN][HANDLE][" + clientUsername + "]");
if (this.field_72544_i) { // FIX THIS SHIT!!!
if (this.field_72544_i) { // FIX THIS SHIT!!! this.field_72544_i
this.initializePlayerConnection();
return;
}
if (this.loginTimer++ == 600) {
this.kickUser("Took too long to log in");
System.out.println("Bitch hurry the fuck up");
} else {
this.myTCPConnection.processReadPackets(); // problem
}