mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-14 17:49:30 +00:00
Made the Java creative inventory more complete.
This commit is contained in:
@@ -306,9 +306,10 @@ void AbstractContainerScreen::mouseClicked(int x, int y, int buttonNum) {
|
||||
}
|
||||
|
||||
if (slotId != -1) {
|
||||
bool quickKey = slotId != AbstractContainerMenu::SLOT_CLICKED_OUTSIDE &&
|
||||
(Keyboard::isKeyDown(Keyboard::KEY_LSHIFT) ||
|
||||
Keyboard::isKeyDown(Keyboard::KEY_RSHIFT));
|
||||
bool quickKey =
|
||||
slotId != AbstractContainerMenu::SLOT_CLICKED_OUTSIDE &&
|
||||
(Keyboard::isKeyDown(Keyboard::KEY_LSHIFT) ||
|
||||
Keyboard::isKeyDown(Keyboard::KEY_RSHIFT));
|
||||
minecraft->gameMode->handleInventoryMouseClick(
|
||||
menu->containerId, slotId, buttonNum, quickKey,
|
||||
minecraft->player);
|
||||
@@ -341,4 +342,4 @@ void AbstractContainerScreen::tick() {
|
||||
Screen::tick();
|
||||
if (!minecraft->player->isAlive() || minecraft->player->removed)
|
||||
minecraft->player->closeContainer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user