return false;
}
VanillaBlockMaterial block = (VanillaBlockMaterial) position.getBlock().getMaterial();
float modifier = 1f, multiplicator = 1.5f;
ToolType type = null;
MiningTool mining = null;
if (tool instanceof MiningTool) {
mining = (MiningTool) tool;
type = mining.getToolType();
}
if (block.isMiningType(type)) {
if (mining != null) {
modifier = mining.getDiggingSpeed();
}
} else {
multiplicator = 5f;
}
byte maxAmount = 8;