Does this logic seem correct?

Well, in programming there is always more than one way to do things. I find ChatGPT gets me 50 to 90% of the way, but is rarely a good solution.

In any event, if you SET the inventory with the inventory, you just get the inventory - it does nothing but waste CPU cycles.

1 Like