mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Various bugfixes with broad mining tools and config additions
This commit is contained in:
1 parent
ae124ac3d4
commit
d641a8eed9
18 files changed
+124
-73
No files matched your search
@@ -1,8 +1,9 @@
|
||||
package tconstruct.modifiers;
|
||||
|
||||
import tconstruct.library.tools.ToolMod;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import tconstruct.library.tools.ToolMod;
|
||||
import tconstruct.util.PHConstruct;
|
||||
|
||||
/* Adds an integer NBTTag */
|
||||
|
||||
@@ -53,9 +54,12 @@ public class ModDurability extends ToolMod
|
||||
tags.setInteger("BonusDurability", bonus);
|
||||
tags.setFloat("ModDurability", modDur);
|
||||
|
||||
int mLevel = tags.getInteger("HarvestLevel");
|
||||
if (mLevel < miningLevel)
|
||||
tags.setInteger("HarvestLevel", miningLevel);
|
||||
if (PHConstruct.miningLevelIncrease)
|
||||
{
|
||||
int mLevel = tags.getInteger("HarvestLevel");
|
||||
if (mLevel < miningLevel)
|
||||
tags.setInteger("HarvestLevel", miningLevel);
|
||||
}
|
||||
|
||||
int modifiers = tags.getInteger("Modifiers");
|
||||
modifiers -= 1;
|
||||
|
||||
Reference in new issue
Block a user