Fix some bugs, and format code (Commented out woolslabs for now)

This commit is contained in:
Alexander committed 2014-04-03 22:28:37 -04:00
1 parent 0241e5273c
commit b6ba8700ad
28 files changed
+216 -1877

No files matched your search

@@ -26,7 +26,8 @@ public class ArmorBasic extends ItemArmor
@Override
public String getArmorTexture (ItemStack stack, Entity entity, int slot, String type)
{
return "tinker:textures/armor/" + textureName + "_" + type + ".png";
int suffix = this.armorType == 2 ? 2 : 1;
return "tinker:textures/armor/" + textureName + "_" + suffix + ".png";
}
}
@@ -3,6 +3,7 @@ package tconstruct.items.armor;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import tconstruct.common.TRepo;
import tconstruct.library.armor.ArmorCore;
import tconstruct.library.armor.EnumArmorPart;
@@ -23,7 +24,8 @@ public class ArmorStandard extends ArmorCore
@Override
public String getArmorTexture (ItemStack stack, Entity entity, int slot, String layer)
{
return "tinker:textures/armor/wood_" + layer + ".png";
int suffix = this.armorType == 2 ? 2 : 1;
return "tinker:textures/armor/wood_" + suffix + ".png";
}
}
@@ -48,12 +48,12 @@ public class Mattock extends DualHarvestTool
}
static Material[] axeMaterials = { Material.wood, Material.cactus, Material.plants, Material.vine };// TODO
// find
// this//,
// Material.pumpkin,
// Material.plants,
// Material.vine
// };
// find
// this//,
// Material.pumpkin,
// Material.plants,
// Material.vine
// };
static Material[] shovelMaterials = { Material.grass, Material.ground, Material.clay };
@Override