mankel200 0 Posted August 29, 2022 Hey, is there something wrong with this code since i seem to get an error? I get an nullpointerexception on "if inventory is full" if (Inventory.isFull()) { Walking.walk(TREES.getRandomTile()); sleepUntil(() -> !getLocalPlayer().isMoving(), 20000); sleep(Calculations.random(500, 1200)); Inventory.get("Tinderbox").useOn("logs"); sleepUntil(() -> getLocalPlayer().isMoving(), 20000); sleep(Calculations.random(500, 1200)); }
SubCZ 284 Posted August 29, 2022 https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it
mankel200 0 Author Posted August 29, 2022 2 hours ago, SubCZ said: https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it it happens even though i null check it
420x69x420 73 Posted August 29, 2022 In order to accurately troubleshoot your code, look at the lines of code which the error first occurred on your script in the Console Logs and look for the red text.
mankel200 0 Author Posted August 30, 2022 9 hours ago, 420x69x420 said: In order to accurately troubleshoot your code, look at the lines of code which the error first occurred on your script in the Console Logs and look for the red text. Pretty sure it was a problem with java or something since it fixed itself lol
Recommended Posts
Archived
This topic is now archived and is closed to further replies.