Skip to content

Commit

Permalink
nay
Browse files Browse the repository at this point in the history
  • Loading branch information
Coccocoahelper authored Sep 24, 2024
1 parent 370f0f7 commit f4092a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void handleJoinGameWithAntiForge(S01PacketJoinGame packetIn, final Callb
return;

PacketThreadUtil.checkThreadAndEnqueue(packetIn, (NetHandlerPlayClient) (Object) this, gameController);
gameController.thePlayerController = new PlayerControllerMP(gameController, (NetHandlerPlayClient) (Object) this);
gameController.playerController = new PlayerControllerMP(gameController, (NetHandlerPlayClient) (Object) this);
clientWorldController = new WorldClient((NetHandlerPlayClient) (Object) this, new WorldSettings(0L, packetIn.getGameType(), false, packetIn.isHardcoreMode(), packetIn.getWorldType()), packetIn.getDimension(), packetIn.getDifficulty(), gameController.mcProfiler);
gameController.gameSettings.difficulty = packetIn.getDifficulty();
gameController.loadWorld(clientWorldController);
Expand All @@ -174,7 +174,7 @@ private void handleJoinGameWithAntiForge(S01PacketJoinGame packetIn, final Callb
gameController.thePlayer.setEntityId(packetIn.getEntityId());
currentServerMaxPlayers = packetIn.getMaxPlayers();
gameController.thePlayer.setReducedDebug(packetIn.isReducedDebugInfo());
gameController.thePlayerController.setGameType(packetIn.getGameType());
gameController.playerController.setGameType(packetIn.getGameType());
gameController.gameSettings.sendSettingsToServer();
netManager.sendPacket(new C17PacketCustomPayload("MC|Brand", (new PacketBuffer(Unpooled.buffer())).writeString(ClientBrandRetriever.getClientModName())));
callbackInfo.cancel();
Expand Down

0 comments on commit f4092a5

Please sign in to comment.