mirror of
https://github.com/GTNewHorizons/IguanaTweaksTConstruct.git
synced 2026-11-25 14:24:44 +00:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user