Add files via upload

This commit is contained in:
ethxn 2026-03-17 16:00:47 +08:00 committed by GitHub
parent 39aeab2f99
commit 5f4b272a15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,8 +157,11 @@ shared_ptr<ItemInstance> AbstractContainerMenu::clicked(int slotIndex, int butto
shared_ptr<ItemInstance> clickedEntity = nullptr;
shared_ptr<Inventory> inventory = player->inventory;
if (slotIndex < 0 || slotIndex >= (int)slots.size())
return nullptr;
//needs to add right click to drop 1 item
//needs to allow Q / CTRL + Q dropping in menus
//if (slotIndex < 0 || slotIndex >= (int)slots.size())
// return nullptr;
if (clickType == CLICK_QUICK_CRAFT)
{