Skip to content

Commit

Permalink
Fix sending unregistered packet
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Nov 5, 2024
1 parent 371787a commit c2e0ea2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ public void tick(int ticks) {
dataManager.tick();
botControl.tick();

sendPacket(ServerboundClientTickEndPacket.INSTANCE);
if (protocol.getOutboundState() == ProtocolState.GAME) {
sendPacket(ServerboundClientTickEndPacket.INSTANCE);
}

postEvent(new BotPostTickEvent(this));
tickHookState.callHooks(TickHookContext.HookType.POST_TICK);
Expand Down

0 comments on commit c2e0ea2

Please sign in to comment.