Пример #1
0
 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)
         );
 }