Hello,
It says this method is called when an item starts crafting. Though this method appears to be called when an item is added to the crafting queue, which is a significant difference.
Greetings,
KeyboardCavemen
Solved OnItemCraft description invalid
Discussion in 'Rust Development' started by KeyboardCavemen, Aug 25, 2015.
-
Indeed it will only be called when a new item is added to the queue. Technically the documentation is not wrong, but it could be more precise.
All that said "OnItemCraftFinished" is called for every item so you can check if the amount is > 0 and do your "OnItemCraft" business there as well. Check out LimeBench, I use that to alter craft times on all items individually. -
Ow it was np to solve it, but like you said, I think the documentation should be updated
[DOUBLEPOST=1440481346][/DOUBLEPOST]Ow and about the OnItemCraftFinished, it's true yet if a craft is cancelled there is no way to check this. But that's a different discussion: Request - OnItemCraftCancelled hook (Rust) | Oxide -
As Wulf said, everything is on the TODO list.
-
Wulf Community Admin
This has been updated in the docs. Thanks for the report!