HeyImJamie Posted June 2, 2017 Share 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? Quote Link to comment Share on other sites More sharing options...
Alek Posted June 2, 2017 Share Posted June 2, 2017 5 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted June 2, 2017 Author Share Posted June 2, 2017 2 minutes ago, Alek said: Hush Quote Link to comment Share on other sites More sharing options...
Butta Posted June 2, 2017 Share Posted June 2, 2017 Quote Link to comment Share on other sites More sharing options...
Turkoize Posted June 3, 2017 Share Posted June 3, 2017 I'm no but i feel like Alek is saying to post ur dong or code. I think code. Quote Link to comment Share on other sites More sharing options...
dmmslaver Posted June 3, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted June 3, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
IDontEB Posted June 3, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
liverare Posted June 4, 2017 Share Posted June 4, 2017 You should re-run all checks each time you hop worlds. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted June 5, 2017 Author Share 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. Quote Link to comment Share on other sites More sharing options...