Changed to tabs from spaces

This commit is contained in:
Andrew Dudney 2014-07-04 14:45:34 -06:00
parent 59d36f31d0
commit f2f563fd39
3 changed files with 24 additions and 24 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;
}
}