Fix rubber log texture names and fix treetap texture
This commit is contained in:
parent
c8d43d9c69
commit
b643162dad
5 changed files with 7 additions and 4 deletions
|
@ -87,14 +87,14 @@ public class BlockRubberLog extends Block implements ITexturedBlock {
|
|||
@Override
|
||||
public String getTextureNameFromState(IBlockState iBlockState, EnumFacing enumFacing) {
|
||||
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(SAP_SIDE) == enumFacing){
|
||||
return "techreborn:blocks/rubber_log_sap";
|
||||
}
|
||||
}
|
||||
return "techreborn:blocks/rubber_log";
|
||||
return "techreborn:blocks/rubber_log_side";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -32,12 +32,15 @@ public class ItemTreeTap extends Item implements ITexturedItem {
|
|||
|
||||
@Override
|
||||
public boolean showDurabilityBar(ItemStack stack) {
|
||||
return true;
|
||||
if(stack.getMetadata()!=0){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName(int damage) {
|
||||
return "techreborn:items/tool/rockcutter";
|
||||
return "techreborn:items/tool/treetap";
|
||||
}
|
||||
|
||||
@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 |
Loading…
Reference in a new issue