Rawrskies
New Member
- Joined
- Aug 8, 2015
- Messages
- 14
Hi all,
I'm trying to get the current recipe ID when I click a button on the settings form of a botbase. However when I do this it always returns 0. If I try to run the exact same thing through the console, it'll return the correct ID; but it's always 0 when I push the button on the form/settings window. Am I missing something here?
Result : 0
I'm trying to get the current recipe ID when I click a button on the settings form of a botbase. However when I do this it always returns 0. If I try to run the exact same thing through the console, it'll return the correct ID; but it's always 0 when I push the button on the form/settings window. Am I missing something here?
Code:
private void btnCheck_Click(object sender, EventArgs e)
{
Logging.Write(CraftingManager.CurrentRecipeId);
}
Result : 0