| 1066 | } |
| 1067 | |
| 1068 | void PlayerInventory::autoAddToCustomBar(InventorySlot slot) { |
| 1069 | if (!Root::singleton().configuration()->getPath("inventory.pickupToActionBar").toBool()) |
| 1070 | return; |
| 1071 | |
| 1072 | auto items = itemsAt(slot); |
| 1073 | if (items && !items->empty() && checkInventoryFilter(items, "autoAddToCustomBar")) |
| 1074 | addToCustomBar(slot); |
| 1075 | } |
| 1076 | |
| 1077 | void PlayerInventory::netElementsNeedLoad(bool) { |
| 1078 | auto itemDatabase = Root::singleton().itemDatabase(); |
nothing calls this directly
no test coverage detected