Hello,
I'm trying to create a crafting wrapper which introduces some delay when crafting stuff.
It's working quite fine by now yet I do have an issue.
In order to add something to the inventory you need to know which function to call. There is:
addClothingItem
addConstructionItem
addItem
addObjectItem
addItem for example works fine for lumber but it fails when trying to add a primitive workbench
For now I didn't find a hint in the itemdefiniton which of the functions to use either ... not sure if i missed it.
nevertheless. instead of having all those functions up there wouldn't it be way more easy to have a generic function which just takes the itemdef and an amount?