mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-18 11:29:29 +00:00
Weapon Test
This commit is contained in:
1 parent
a4d318f059
commit
bdfb8d5c21
50 files changed
+1384
-924
No files matched your search
@@ -16,9 +16,6 @@ public class ModExtraModifier extends ToolMod
|
||||
@Override
|
||||
protected boolean canModify (ItemStack tool, ItemStack[] input)
|
||||
{
|
||||
if ((input[0] == null && input[1] == null) || (input[0] != null && input[1] != null)) //Only valid for one itemstack
|
||||
return false;
|
||||
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
||||
if (tags.getBoolean(key))
|
||||
{
|
||||
@@ -33,7 +30,9 @@ public class ModExtraModifier extends ToolMod
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
||||
tags.setBoolean(key, true);
|
||||
int modifiers = tags.getInteger("Modifiers");
|
||||
tags.setInteger("Modifiers", modifiers + 1);
|
||||
modifiers += 1;
|
||||
tags.setInteger("Modifiers", modifiers);
|
||||
}
|
||||
|
||||
|
||||
public void addMatchingEffect (ItemStack tool) {}
|
||||
}
|
||||
Reference in new issue
Block a user