Fix material override not adjusting max-harvest-level

Basically if you had more harvest levels than ITT it wouldn't work with the mining boost stuff.
This commit is contained in:
Bernhard Bonigl committed 2015-02-26 16:17:48 +01:00
1 parent ae03f868a2
commit 8d62d4b22b
1 file changed
+4
@@ -113,6 +113,10 @@ public class MaterialOverride implements IOverride {
else
tipStyle = mat.style();
// save highest harvest level given
if(harvestLevel > HarvestLevels.max)
HarvestLevels.max = harvestLevel;
// reconstruct the material
XPAdjustmentMap.put(mat.materialName, xpAmount);
return new ToolMaterial(mat.materialName, mat.localizationString, harvestLevel, durability, miningspeed, attack, handleModifier, reinforced, stonebound, tipStyle, mat.primaryColor);