Skip to content
Discussion options

You must be logged in to vote

I think your solution would work, tho i question need to query getItemDetails() this many times?

To decrease amount of details calls you have to make I would suggest creating cache of ItemDetails data, that used item name + nbthash of item to store Details of unique item into file (if details other then count change, nbthash would change too, so it would be different item to such cache). That way, if your system interacted with item it already seen before, it can use item name + nbthash you get from single list() call to retrieve item details from your locally stored cache, without needing to wait for CC to get this data from world on next world tick. It would mean instead of needing to g…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fatboychummy
Comment options

@fechan
Comment options

Answer selected by fechan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants