public override bool IsFaceTransparent(SubsystemTerrain subsystemTerrain, int face, int value) { if (FluidBlock.GetIsTop(Terrain.ExtractData(value))) { return(face != 5); } return(false); }
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); }