Changed to tabs from spaces
This commit is contained in:
parent
59d36f31d0
commit
f2f563fd39
3 changed files with 24 additions and 24 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue