mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Really Remove all ItemStack == ItemStack and ComparisonHelper references.
This commit is contained in:
1 parent
4399b4f26e
commit
ca00652ad7
12 files changed
+23
-36
No files matched your search
@@ -99,7 +99,7 @@ public class Detailing
|
||||
for (int i = 0; i < detailing.size(); i++)
|
||||
{
|
||||
DetailInput detail = (DetailInput) detailing.get(i);
|
||||
if (new ItemStack(block) == detail.input && inputMeta == detail.inputMeta)
|
||||
if (Item.getItemFromBlock(block) == detail.input.getItem() && inputMeta == detail.inputMeta)
|
||||
{
|
||||
return detail;
|
||||
}
|
||||
@@ -122,4 +122,4 @@ public class Detailing
|
||||
this.outputMeta = outputMeta;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,10 +37,10 @@ public class ShapelessToolRecipe extends ShapelessRecipes
|
||||
|
||||
while (iterator.hasNext())
|
||||
{
|
||||
ItemStack itemstack1 = (ItemStack) iterator.next();
|
||||
ItemStack itemstack1 = (ItemStack)iterator.next();
|
||||
|
||||
// TConstruct.logger.info("Rawr! "+itemstack1.getItemDamage());
|
||||
if (itemstack == itemstack1 && (itemstack1.getItemDamage() == Short.MAX_VALUE || itemstack.getItemDamage() == itemstack1.getItemDamage()))
|
||||
if (itemstack.getItem() == itemstack1.getItem() && (itemstack1.getItemDamage() == Short.MAX_VALUE || itemstack.getItemDamage() == itemstack1.getItemDamage()))
|
||||
{
|
||||
if (itemstack.getItem() instanceof ToolCore)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user