MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / autoAddToCustomBar

Method autoAddToCustomBar

source/game/StarPlayerInventory.cpp:1068–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066}
1067
1068void 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
1077void PlayerInventory::netElementsNeedLoad(bool) {
1078 auto itemDatabase = Root::singleton().itemDatabase();

Callers

nothing calls this directly

Calls 5

singletonClass · 0.85
toBoolMethod · 0.80
configurationMethod · 0.80
getPathMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected