Make shrub logs flammable

This commit is contained in:
Nedelosk committed 2017-04-10 02:20:04 +02:00
1 parent 1cbf2ad892
commit 1626b6ec03
1 file changed
+23
@@ -154,6 +154,29 @@ public class BlockShrubLog extends Block implements IWoodTyped, IStateMapperRegi
return false;
}
@Override
public final int getFireSpreadSpeed(IBlockAccess world, BlockPos pos, EnumFacing face) {
IBlockState state = world.getBlockState(pos);
if (state.getValue(FIREPROOF)) {
return 0;
} else if (face == EnumFacing.DOWN) {
return 20;
} else if (face != EnumFacing.UP) {
return 10;
} else {
return 5;
}
}
@Override
public final int getFlammability(IBlockAccess world, BlockPos pos, EnumFacing face) {
IBlockState state = world.getBlockState(pos);
if (state.getValue(FIREPROOF)) {
return 0;
}
return 5;
}
@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos,