Modifiers, polish

This commit is contained in:
mDiyo committed 2013-01-21 14:02:28 -08:00
1 parent 37c88ce903
commit a87babcf0b
37 files changed
+414 -74

No files matched your search

+5 -5
View File
@@ -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)