crucial performance optimization
This commit is contained in:
parent
ae3fc14b52
commit
9dfcef6356
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user