Пример #1
0
 public override bool IsFaceTransparent(SubsystemTerrain subsystemTerrain, int face, int value)
 {
     if (FluidBlock.GetIsTop(Terrain.ExtractData(value)))
     {
         return(face != 5);
     }
     return(false);
 }
Пример #2
0
        public static bool IsValueDisallowed(int value)
        {
            int num  = Terrain.ExtractContents(value);
            int data = Terrain.ExtractData(value);

            if ((num == 18 || num == 92) && FluidBlock.GetLevel(data) != 0 && FluidBlock.GetIsTop(data))
            {
                return(true);
            }
            return(false);
        }