Skip to content

Commit

Permalink
call on main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
19MisterX98 authored and MineGame159 committed Oct 22, 2023
1 parent 89e4ae3 commit 3fb57b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void onGameJoinTail(GameJoinS2CPacket packet, CallbackInfo info) {
}

// the server sends a GameJoin packet after the reconfiguration phase
@Inject(method = "onEnterReconfiguration", at = @At("HEAD"))
@Inject(method = "onEnterReconfiguration", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/NetworkThreadUtils;forceMainThread(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/listener/PacketListener;Lnet/minecraft/util/thread/ThreadExecutor;)V", shift = At.Shift.AFTER))
private void onEnterReconfiguration(EnterReconfigurationS2CPacket packet, CallbackInfo info) {
MeteorClient.EVENT_BUS.post(GameLeftEvent.get());
}
Expand Down

0 comments on commit 3fb57b6

Please sign in to comment.