This commit is contained in:
Prospector 2016-05-21 12:15:41 -07:00
commit a512baa0f1
5 changed files with 13 additions and 1 deletions

View file

@ -217,6 +217,9 @@ public class BlockOre extends BaseBlock implements ITexturedBlock, IOreNameProvi
@Override
public IBlockState getStateFromMeta(int meta) {
if(meta > ores.length){
meta = 0;
}
return getBlockState().getBaseState().withProperty(VARIANTS, oreNamesList.get(meta));
}

View file

@ -138,6 +138,9 @@ public class BlockOre2 extends BaseBlock implements ITexturedBlock, IOreNameProv
@Override
public IBlockState getStateFromMeta(int meta) {
if(meta > ores.length){
meta = 0;
}
return getBlockState().getBaseState().withProperty(VARIANTS, oreNamesList.get(meta));
}

View file

@ -25,7 +25,7 @@ public class BlockRubberSapling extends BlockSapling
setUnlocalizedName("techreborn.rubbersapling");
setCreativeTab(TechRebornCreativeTabMisc.instance);
this.setDefaultState(this.getDefaultState().withProperty(STAGE, 0));
setSoundType(SoundType.PLANT)
setSoundType(SoundType.PLANT);
}
@Override

View file

@ -88,6 +88,9 @@ public class BlockStorage extends BaseBlock implements ITexturedBlock
@Override
public IBlockState getStateFromMeta(int meta)
{
if(meta > types.length){
meta = 0;
}
return this.getDefaultState().withProperty(METADATA, meta);
}

View file

@ -85,6 +85,9 @@ public class BlockStorage2 extends BaseBlock implements ITexturedBlock
@Override
public IBlockState getStateFromMeta(int meta)
{
if(meta > types.length){
meta = 0;
}
return this.getDefaultState().withProperty(METADATA, meta);
}