mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Modifiers, polish
This commit is contained in:
1 parent
37c88ce903
commit
a87babcf0b
37 files changed
+414
-74
No files matched your search
@@ -14,7 +14,7 @@ public class ModElectric extends ModBoolean
|
||||
|
||||
public ModElectric()
|
||||
{
|
||||
super(new ItemStack[0], 9, "Electric");
|
||||
super(new ItemStack[0], 9, "Electric", "\u00a7e", "");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -37,18 +37,18 @@ public class ModElectric extends ModBoolean
|
||||
if (stack.isItemEqual(input[0]) || stack.isItemEqual(input[1]))
|
||||
battery = true;
|
||||
}
|
||||
return circuit && battery && canModify(tool);
|
||||
return circuit && battery && canModify(tool, input);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean canModify (ItemStack tool)
|
||||
/*@Override
|
||||
protected boolean canModify (ItemStack tool, ItemStack[] input)
|
||||
{
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
||||
if (!tags.hasKey(key))
|
||||
return tags.getInteger("Modifiers") > 0;
|
||||
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public void modify (ItemStack[] input, ItemStack tool)
|
||||
|
||||
Reference in new issue
Block a user