To reproduce:
Code: Select all
/c game.player.character.set_request_slot({name="wood", count=0}, 1)
The message should be "has to be a" and not "has to a be"Cannot execute command. Error: Item stack count has to a be positive number
I'd expect the call to work even when count is 0.
But reading the error it might actually be because the implementation of item stack doesn't allow count to be 0, which makes sense i guess.