crucial performance optimization

This commit is contained in:
Leijurv 2019-01-15 17:21:50 -08:00
parent ae3fc14b52
commit 9dfcef6356
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -154,11 +154,10 @@ public class ToolSet {
speed /= hardness;
if (state.getMaterial().isToolNotRequired() || (!item.isEmpty() && item.canHarvestBlock(state))) {
speed /= 30;
return speed / 30;
} else {
speed /= 100;
return speed / 100;
}
return speed;
}
/**