Closed levidavidmurray closed 8 months ago
I'm in the process of changing some things in the core, to get it ready for version 1.0, I really need to check some places that are strange like this inventory_handler, taking advantage, I'm currently modifying the core to receive dynamic properties of items
I found this add-on today and I'm very much loving how clean and readable the code is. Amazing work! Hoping to make good use of it 🙂
I noticed the F1-F6 buttons were broken in demo, so, figured I'd tackle this to better understand the system.![image](https://github.com/expressobits/inventory-system/assets/46084870/e248ab31-981a-4f9f-b6ec-20c8e20ce476)
Introduced with the removal of
InventoryHandler::inventory
in favour ofInventoryHandler::inventories
last week (https://github.com/expressobits/inventory-system/commit/4b6005a397c355dc20ebd0b9d215f9275bb52529#)InventoryHandler
already has the concept of "main inventory" all over the place, but is repeatedly accessed asinventories[0]
. Maybe this should be moved to a function or variable? I did noticeInventoryHandler::inventory_path
which is the main inventory in this specific case, but it's typed as aNodePath
instead ofInventory
.✌️