I’ve been battling with this for a few weeks, and it’s driving me to frustration.
I have two separate systems that use the same basic code to refresh the UI when the inventory changes. One works, the other throws the following error:
This is the code calling the refresh when the inventory changes:
This is what it calls:
(I removed the links from container during the process of trying to debug this, I just haven’t removed the pin)
The ContainerUI variable is set when the UI is opened, at the same time that PlayersViewing is set. The initial opening of the UI works, but the error comes when the refresh is called, and it doesn’t run the refresh.
Any help at all would be appreciated!