mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-08-20 09:57:09 +00:00
Clicking outside container now drops items (#1306)
This commit is contained in:
parent
8e820975b1
commit
33a3d69fc8
|
|
@ -157,7 +157,7 @@ shared_ptr<ItemInstance> AbstractContainerMenu::clicked(int slotIndex, int butto
|
||||||
shared_ptr<ItemInstance> clickedEntity = nullptr;
|
shared_ptr<ItemInstance> clickedEntity = nullptr;
|
||||||
shared_ptr<Inventory> inventory = player->inventory;
|
shared_ptr<Inventory> inventory = player->inventory;
|
||||||
|
|
||||||
if (slotIndex < 0 || slotIndex >= (int)slots.size())
|
if ((slotIndex < 0 && slotIndex != SLOT_CLICKED_OUTSIDE) || slotIndex >= (int)slots.size())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
if (clickType == CLICK_QUICK_CRAFT)
|
if (clickType == CLICK_QUICK_CRAFT)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue