fix: delay opening screen by one tick in /optionsprofiles command

This commit is contained in:
trafficlunar 2025-03-01 10:18:08 +00:00
parent e56829232d
commit 84b1eadf4a

View file

@ -39,7 +39,7 @@ public class OptionsProfilesMod {
Commands
.literal("optionsprofiles")
.executes(context -> {
Minecraft.getInstance().setScreen(new ProfilesScreen(null));
Minecraft.getInstance().execute(() -> Minecraft.getInstance().setScreen(new ProfilesScreen(null)));
return 1;
})
)));