don't let a NaN slip through

This commit is contained in:
Leijurv 2018-09-22 09:34:42 -07:00
parent c508fb2cb7
commit c64785f0ce
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -322,7 +322,7 @@ public interface MovementHelper extends ActionCosts, Helper {
}
double m = Blocks.CRAFTING_TABLE.equals(block) ? 10 : 1; // TODO see if this is still necessary. it's from MineBot when we wanted to penalize breaking its crafting table
double strVsBlock = context.getToolSet().getStrVsBlock(state);
if (strVsBlock < 0) {
if (strVsBlock <= 0) {
return COST_INF;
}