mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-23 21:49:45 +00:00
Rewrote ModAttack to accept multiple items
This commit is contained in:
1 parent
977287e440
commit
086cc97ddc
12 files changed
+152
-50
No files matched your search
@@ -70,8 +70,8 @@ public abstract class ToolMod
|
||||
|
||||
return list.isEmpty();
|
||||
}
|
||||
|
||||
protected String getTagName()
|
||||
|
||||
protected String getTagName ()
|
||||
{
|
||||
return "InfiTool";
|
||||
}
|
||||
@@ -211,4 +211,13 @@ public abstract class ToolMod
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean areItemStacksEquivalent (ItemStack stack1, ItemStack stack2)
|
||||
{
|
||||
if (stack1.itemID != stack2.itemID)
|
||||
return false;
|
||||
if (stack1.getItemDamage() != stack2.getItemDamage())
|
||||
return false;
|
||||
return ItemStack.areItemStackTagsEqual(stack1, stack2);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user