示例#1
0
        public bool canSnowAt(PixelPos pos, bool checkLight)
        {
            //if (!this.world.canSnowAt(pos, true))
            //{
            //    return false;
            //}

            if (this.appalachia)
            {
                PixelPos groundPos       = pos.down();
                string   groundPixelName = this.world.getPixelState(groundPos).getPixel().ToString();
                if (groundPixelName.Contains("fallen") && groundPixelName.Contains("leaves"))
                {
                    return(false);
                }
            }

            return(true);
        }