- Joined
- Dec 31, 2015
- Messages
- 602
- Thread Author
- #1
As of one of the most recent patches I know @Cloud and @Party did some work on making the Bank work properly for empty banks.
On various occasions in Blast Furnace this will result in my bot stopping when its not out of coal.
This is a big problem, and writing failsafes sure is good practice, but this is still unexpected behaviour. This always used to work and I've had absolutely no issue with this up until around 1-1/2 weeks ago.
Code:
int quantity = Bank.getQuantity(coal);
if (Bank.isOpen() && quantity <= 28 && !Bank.newQuery().results().isEmpty()) {
bot().getLogger().info("Found " + quantity + " Coal, stopping!");
bot().setStopReason("Ran out of Coal");
bot().setShutdown(true);
return false;
}
On various occasions in Blast Furnace this will result in my bot stopping when its not out of coal.
This is a big problem, and writing failsafes sure is good practice, but this is still unexpected behaviour. This always used to work and I've had absolutely no issue with this up until around 1-1/2 weeks ago.