Fix rubber log texture names and fix treetap texture

This commit is contained in:
TheDoctorSoda 2016-02-21 13:32:03 -08:00
parent c8d43d9c69
commit b643162dad
5 changed files with 7 additions and 4 deletions

View file

@ -87,14 +87,14 @@ public class BlockRubberLog extends Block implements ITexturedBlock {
@Override @Override
public String getTextureNameFromState(IBlockState iBlockState, EnumFacing enumFacing) { public String getTextureNameFromState(IBlockState iBlockState, EnumFacing enumFacing) {
if(enumFacing == EnumFacing.DOWN || enumFacing == EnumFacing.UP){ if(enumFacing == EnumFacing.DOWN || enumFacing == EnumFacing.UP){
return "techreborn:blocks/rubber_log_side"; return "techreborn:blocks/rubber_log_top";
} }
if(iBlockState.getValue(HAS_SAP)){ if(iBlockState.getValue(HAS_SAP)){
if(iBlockState.getValue(SAP_SIDE) == enumFacing){ if(iBlockState.getValue(SAP_SIDE) == enumFacing){
return "techreborn:blocks/rubber_log_sap"; return "techreborn:blocks/rubber_log_sap";
} }
} }
return "techreborn:blocks/rubber_log"; return "techreborn:blocks/rubber_log_side";
} }
@Override @Override

View file

@ -32,12 +32,15 @@ public class ItemTreeTap extends Item implements ITexturedItem {
@Override @Override
public boolean showDurabilityBar(ItemStack stack) { public boolean showDurabilityBar(ItemStack stack) {
return true; if(stack.getMetadata()!=0){
return true;
}
return false;
} }
@Override @Override
public String getTextureName(int damage) { public String getTextureName(int damage) {
return "techreborn:items/tool/rockcutter"; return "techreborn:items/tool/treetap";
} }
@Override @Override

Binary file not shown.

Before

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 838 B

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B