Creative Mode KBM Swap

When in creative, pressing InventoryKey(E) will now open the creative menu. To open inventory in creative, you press the CraftKey(R).

This better suits with Java(and Bedrock I think)
This commit is contained in:
eh-K 2026-03-08 00:35:39 -06:00 committed by GitHub
parent 7d8ddba294
commit 02cfcf6850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1485,6 +1485,10 @@ void Minecraft::run_middle()
{ {
ui.CloseUIScenes(i); ui.CloseUIScenes(i);
} }
else if(gameMode->hasInfiniteItems())
{
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_CRAFTING;
}
else else
{ {
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_INVENTORY; localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_INVENTORY;
@ -1500,6 +1504,10 @@ void Minecraft::run_middle()
{ {
ui.CloseUIScenes(i); ui.CloseUIScenes(i);
} }
else if(gameMode->hasInfiniteItems())
{
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_INVENTORY;
}
else else
{ {
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_CRAFTING; localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_CRAFTING;