mirror of
https://github.com/FabricMC/fabric.git
synced 2025-07-28 15:09:35 -04:00
Make sure only render thread can call onGameJoin (#2290)
This commit is contained in:
parent
fd0cc9858a
commit
59c610c9f3
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ abstract class ClientPlayNetworkHandlerMixin {
|
|||
@Final
|
||||
private ClientCommandSource commandSource;
|
||||
|
||||
@Inject(method = "onGameJoin", at = @At("HEAD"))
|
||||
@Inject(method = "onGameJoin", at = @At("RETURN"))
|
||||
private void onGameJoin(GameJoinS2CPacket packet, CallbackInfo info) {
|
||||
final CommandDispatcher<FabricClientCommandSource> dispatcher = new CommandDispatcher<>();
|
||||
ClientCommandInternals.setActiveDispatcher(dispatcher);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue