From f2f563fd39f529c29036970ce82517148cdc8998 Mon Sep 17 00:00:00 2001 From: Andrew Dudney Date: Fri, 4 Jul 2014 14:45:34 -0600 Subject: [PATCH] Changed to tabs from spaces --- .../core/inventory/StackHelper.java | 28 +++++++++---------- common/buildcraft/factory/TileRefinery.java | 6 ++-- .../silicon/TileAdvancedCraftingTable.java | 14 +++++----- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/common/buildcraft/core/inventory/StackHelper.java b/common/buildcraft/core/inventory/StackHelper.java index c04bc2d1..6d7a53d7 100644 --- a/common/buildcraft/core/inventory/StackHelper.java +++ b/common/buildcraft/core/inventory/StackHelper.java @@ -81,13 +81,13 @@ public class StackHelper { if (oreDictionary) { int[] idBase = OreDictionary.getOreIDs(base); if (idBase.length > 0) { - for (int id : idBase) { - for (ItemStack itemstack : OreDictionary.getOres(OreDictionary.getOreName(id))) { - if (comparison.getItem() == itemstack.getItem() && (itemstack.getItemDamage() == OreDictionary.WILDCARD_VALUE || comparison.getItemDamage() == itemstack.getItemDamage())) { - return true; - } - } - } + for (int id : idBase) { + for (ItemStack itemstack : OreDictionary.getOres(OreDictionary.getOreName(id))) { + if (comparison.getItem() == itemstack.getItem() && (itemstack.getItemDamage() == OreDictionary.WILDCARD_VALUE || comparison.getItemDamage() == itemstack.getItemDamage())) { + return true; + } + } + } } } @@ -96,13 +96,13 @@ public class StackHelper { public static boolean isCraftingEquivalent(int[] oreIDs, ItemStack comparison) { if (oreIDs.length > 0) { - for (int id : oreIDs) { - for (ItemStack itemstack : OreDictionary.getOres(OreDictionary.getOreName(id))) { - if (comparison.getItem() == itemstack.getItem() && (itemstack.getItemDamage() == OreDictionary.WILDCARD_VALUE || comparison.getItemDamage() == itemstack.getItemDamage())) { - return true; - } - } - } + for (int id : oreIDs) { + for (ItemStack itemstack : OreDictionary.getOres(OreDictionary.getOreName(id))) { + if (comparison.getItem() == itemstack.getItem() && (itemstack.getItemDamage() == OreDictionary.WILDCARD_VALUE || comparison.getItemDamage() == itemstack.getItemDamage())) { + return true; + } + } + } } return false; diff --git a/common/buildcraft/factory/TileRefinery.java b/common/buildcraft/factory/TileRefinery.java index a3712163..d960f9dd 100644 --- a/common/buildcraft/factory/TileRefinery.java +++ b/common/buildcraft/factory/TileRefinery.java @@ -138,9 +138,9 @@ public class TileRefinery extends TileBuildCraft implements IFluidHandler, IInve decreaseAnimation(); } - if (time == null) { - time = new SafeTimeTracker(currentRecipe.timeRequired); - } + if (time == null) { + time = new SafeTimeTracker(currentRecipe.timeRequired); + } if (!time.markTimeIfDelay(worldObj)) { return; diff --git a/common/buildcraft/silicon/TileAdvancedCraftingTable.java b/common/buildcraft/silicon/TileAdvancedCraftingTable.java index 53f313ba..d5cd8bf6 100644 --- a/common/buildcraft/silicon/TileAdvancedCraftingTable.java +++ b/common/buildcraft/silicon/TileAdvancedCraftingTable.java @@ -91,13 +91,13 @@ public class TileAdvancedCraftingTable extends TileLaserTableBase implements IIn super.setInventorySlotContents(slotId, itemstack); if (TileAdvancedCraftingTable.this.getWorldObj() == null || !TileAdvancedCraftingTable.this.getWorldObj().isRemote) { - int[] id = new int[0]; - if (itemstack != null) { - int[] ids = OreDictionary.getOreIDs(itemstack); - if (ids.length > 0) { - id = ids; - } - } + int[] id = new int[0]; + if (itemstack != null) { + int[] ids = OreDictionary.getOreIDs(itemstack); + if (ids.length > 0) { + id = ids; + } + } oreIDs[slotId] = id; } }