HeyImJamie Posted June 2, 2017 Posted June 2, 2017 I've been checking my inventory for a certain item and if it's no longer in the inventory, I'd set my restock boolean to true. However when I world hop/log back in from a break it occasionally seems to think the item's not in the inventory, although it is. I tried putting in a check for myPlayer.isVisible as well to see if that would fix it but still no luck.. Any ideas?
Turkoize Posted June 3, 2017 Posted June 3, 2017 I'm no but i feel like Alek is saying to post ur dong or code. I think code.
dmmslaver Posted June 3, 2017 Posted June 3, 2017 2 hours ago, Alek said: No code is needed. @OP you are checking if the item is in your inventory when you are not logged in basically. Wait till after you're in the new world.
HeyImJamie Posted June 3, 2017 Author Posted June 3, 2017 4 minutes ago, dmmslaver said: No code is needed. @OP you are checking if the item is in your inventory when you are not logged in basically. Wait till after you're in the new world. Yeah I thought that. Gonna try checking login state as well as the inv now
IDontEB Posted June 3, 2017 Posted June 3, 2017 4 minutes ago, HeyImJamie said: Yeah I thought that. Gonna try checking login state as well as the inv now Look if one of the tab buttons (ex: equipment tab) is visible with widgets to know if you're logged in or not. 1
liverare Posted June 4, 2017 Posted June 4, 2017 You should re-run all checks each time you hop worlds.
HeyImJamie Posted June 5, 2017 Author Posted June 5, 2017 22 hours ago, liverare said: You should re-run all checks each time you hop worlds. I do now, thank you.