public virtual int getBlockId(float width, TreeGenBlocks blocks, TreeGen gen) { return (width < 0.3f || NoLogs?blocks.GetLeaves(width) : (blocks.otherLogBlockCode != null && gen.TriggerRandomOtherBlock() ? blocks.otherLogBlockId : blocks.logBlockId) ); }
public override int getBlockId(float width, TreeGenBlocks blocks, TreeGen gen) { if (segment != 0 && width >= 0.3f) { return(blocks.trunkSegmentBlockIds[segment - 1]); } return(base.getBlockId(width, blocks, gen)); }